Search found 2 matches
- Wednesday 28 March 2018 14:09
- Forum: Other questions and discussions
- Topic: How to use Data field in HttpLink
- Replies: 1
- Views: 462
Re: How to use Data field in HttpLink
I now used these settings: measures={ "type":"%V", "time":%t0, "value":%v } In my NodeJS client I still have to do this to be able to get 'type', 'time' and 'value' fields: var measuresObj = JSON.parse(req.body.measures); I'm still interested in a better solution, but for now it works.
- Tuesday 27 March 2018 21:27
- Forum: Other questions and discussions
- Topic: How to use Data field in HttpLink
- Replies: 1
- Views: 462
How to use Data field in HttpLink
I'm trying to use HttpLink to push my P1 meter data to the Google Cloud for extra analyses. I can't figure out what to put in the field 'Data'. I tried this: [{"time": "%t4","type": "%V","val": "%v"}] When I do this my nodeJS client receives this as: { '{"time": "2018-03-27T19:23:09Z","type ...