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

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
mcfreematics
Posts: 4
Joined: Fri Feb 22, 2019 1:14 pm

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

Post 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.
ticcoid
Posts: 1
Joined: Sun Dec 01, 2019 12:23 am

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

Post by ticcoid »

I would be interested as well. Couldn't get it working :(
daveywatt
Posts: 23
Joined: Fri Jun 26, 2020 10:11 pm

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

Post by daveywatt »

Did you guys ever get this working? I am seeing HTTP issues over SIM7600 but over WiFi its fine.
aanter1989
Posts: 1
Joined: Mon Jul 27, 2020 3:22 am

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

Post 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.
cmendes0101
Posts: 14
Joined: Wed Jul 29, 2020 1:06 pm

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

Post 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
Post Reply