Page 1 of 1

Did anyone manage to make freematics One+ send data to NodeJs server via HTTP POST

Posted: Fri Feb 22, 2019 1:30 pm
by mcfreematics
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.

Re: Did anyone manage to make freematics One+ send data to NodeJs server via HTTP POST

Posted: Sun Dec 01, 2019 12:29 am
by ticcoid
I would be interested as well. Couldn't get it working :(