I've created some ?C devices, which transfer some data to a Microsoft Flow. (Arduino based ESP8266 WiFi modules)
That works great, so I got in mind also to do that with my gamin :)
Flow gives you a https-URL with a connection string included:
URL
Transport-method is POST
Data is a simple Json.
My attempt was to reuse the code from the API. It contains a lot or typos, missing chars and does not compile
This is quite similar to my C code on my microcontroller. But I receive a 401 all the time!
I tried some different approaches, but they gave me negative status codes, so I think I made it worse.
function makeRequest()
{
}
To ensure the way to submit the data is fine, I created several requests with https://www.hurl.it/.
Post, no authentication, Header = Content Type and my values as parameter. This also work fine!
The Emulator is set to "Use Device Https Requirements" and is running on the same machine, on the same network, where my microcontrollers are.