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 :(

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

Posted: Thu Jul 16, 2020 4:45 pm
by daveywatt
Did you guys ever get this working? I am seeing HTTP issues over SIM7600 but over WiFi its fine.

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

Posted: Mon Jul 27, 2020 3:32 am
by aanter1989
The answer to this question is even harder than choosing leggings vs yoga pants. I think that the answer to this question is known more at technical support.

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

Posted: Thu Jul 30, 2020 12:34 pm
by cmendes0101
Have you guys tried the newest commits in Github? I was having the same issue but getting the new updates with rebuilding libs is working.

It was on another thread: viewtopic.php?f=9&t=44144