Did anyone manage to make freematics One+ send data to NodeJs server via HTTP POST
Posted: Fri Feb 22, 2019 1:30 pm
Hi,
Did anyone manage to make freematics One+ send data to NodeJs server using PROTOCOL_HTTP_POST ?
Do you know where to set the content-type ? Do we need to define a global variable in the config.h
#define HTTPFILETYPE_JSON "application/json"
is the "application/json" the right type ? or is it "text/plain" or something else ?
Context/further details:
sending data (GPS/OBD) to hub.freematics.com works fine thru PROTOCOL_UDP.
Now I need to send the same data to a NodeJs backend via HTTP post.
Any help/hint is much appreciated.
Did anyone manage to make freematics One+ send data to NodeJs server using PROTOCOL_HTTP_POST ?
Do you know where to set the content-type ? Do we need to define a global variable in the config.h
#define HTTPFILETYPE_JSON "application/json"
is the "application/json" the right type ? or is it "text/plain" or something else ?
Context/further details:
sending data (GPS/OBD) to hub.freematics.com works fine thru PROTOCOL_UDP.
Now I need to send the same data to a NodeJs backend via HTTP post.
Any help/hint is much appreciated.