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 via HTTP POST
-
- Posts: 4
- Joined: Fri Feb 22, 2019 1:14 pm
Re: Did anyone manage to make freematics One+ send data to NodeJs server via HTTP POST
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
Did you guys ever get this working? I am seeing HTTP issues over SIM7600 but over WiFi its fine.
-
- 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
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.
-
- 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
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
It was on another thread: viewtopic.php?f=9&t=44144