Hello everybody!
I have two Electrons (firmware 0.6.0) that post (actually using GET method) some data to a site of mine hosted at GoDaddy.
It’s something very simple and it worked well until 02.28.2017 for one of them. The other one was powered off during 02.26.2017 and 03.03.2017, so I don’t now if it stopped the same day as the other one.
Here’s what I do:
byte server[] = { 160, 153, 162, 19 };
char szRequest[255];
sprintf(szRequest, "\"GET /bees/telemetry?dev_id=%d&vbat=%.2f&vcap=%.2f&rssi_rssi=%.2f&rssi_qual=%.2f HTTP/1.0\"", dev_id, fVBat, fVCap, fRssi_rssi, fRssi_qual);
Serial.println(szRequest);
Serial.println("connecting...");
if (client.connect(server, 80))
{
Serial.println("...connected");
client.println(szRequest);
client.println("Host: bornuz.com");
client.println("Content-Length: 0");
client.println();
}
else
{
Serial.println("connection failed");
delay(1000);
}
They connect, (flash Green, breathe Cyan, but now the response is 400 Bad Request, followed by a http formatted response that includes the line:
(none)/bees/telemetry?dev_id=2&vbat=4.04&vcap=97.50&rssi_rssi=-81.00&rssi_qual=43.00 (port 80)
I’ve set up two destinations on my server, one as a simple PHP script, at /direct/up2.php and one as a CodeIgniter Controller at /bees/telemetry. Both worked fine…
I am using a Vodafone SIM.
The only change after 02.28.17 was thet I installed Node-Red. During install I had to update my node.js and npm installations.
(I would like to completely uninstall everything related to my local setup and after that to do a fresh reinstall, but I don’t know how. I think I should uninstall-reinstall everything because:
I also have another problem:
If I compile my code or Tinker in cloud with WebIDE and download the firmware, I can upload that firmware to my Electron with particle-cli and it works as described above. Same with Tinker, but Tinker works well.
If I compile in cloud from my local Atom IDE, I am able to upload the firmware to Electron but it flashes green a few times and after that it gets stuck breathing Magenta. Same with Tinker. )
I really need some help. Many thanks in advance!