Home › Forums › Mayfly Data Logger › Newbie Mayfly Setup for RS485 sensor to internet › Reply To: Newbie Mayfly Setup for RS485 sensor to internet
Got Xbee Sleep access fixed.
I’m now communicating to the Xbee Wifi and getting NIST time.
Looks like an error on post.
Fixed the Xbee Sleep access;
envirodiy\ModularSensors\src\ModemOnOff.cpp
bool heldOnOff::on(void)
//digitalWrite(_modemSleepRqPin, HIGH);
digitalWrite(_modemSleepRqPin,_isHighWhenOn) ;
bool heldOnOff::off(void)
//digitalWrite(_modemSleepRqPin, LOW);
digitalWrite(_modemSleepRqPin,!_isHighWhenOn);
<start log of post>
\/—- Post Request to EnviroDIY —-\/
POST /api/data-stream/ HTTP/1.1
Host: data.envirodiy.org
TOKEN: 7b19191b-b3d6-416d-9e07-4fbe549f2493
Content-Length: 334
Content-Type: application/json
{“sampling_feature”: “b918f150-4fff-424d-813a-a69a808a93b6”, “timestamp”: “2018-10-09T16:58:00-08:00”, “3907922a-56fe-46f3-a56e-9de6b77d3679”: 23.50, “f40a9dff-2c54-43ae-a016-1c5095c188eb”: 0.0323, “7bc30855-ae08-4865-ab89-a8e17df93bfc”: 19.24, “2c58e64d-6b66-4d9e-b893-bfdb10b65426”: 4.457, “0cf94fc8-a5d2-4fbe-82f2-2a81650575a8 “: 0}
[26306] ### Unhandled: r: nginx/1.10.3 (Ubuntu)
Date: Wed, 10 Oct 2018 00:58:14 GMT
th: 78
Connection: keep-alive
Vary: Accept
X-Frame-Options: SAMEORIGIN
Allow: POST, OPTIONS
{“detail”:”JSON parse error – Expecting object: line 1 column 334 (char 333)”}HTTP/1.1 400 Bad Request
Server: n