Hi All,
My first post here. I have set up the free version of IOT cloud, 1 have 2 ESP8266 devices set up. At the moment im just sending back 5 vars of data, one of those vars is "location" that consists of Long lat + Long coords.
Before i added the map widget every thing was working fine, all the data i sent was correctly displayed on the web dashboard and on IOT cloud remote installed on a new(ish) Android phone. As soon as i added the map widget the web dash board work fine but the IOT cloud remote app crashes a few seconds after launch.
Just wondering if anyone else is having the same problem?
I added my code here. I tried a new dashboard with only the map displayed and the same thing happens, works fine on the web but crashes the Android remote app.
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
https://create.arduino.cc/cloud/things/f48cea92-2261-4dea-bb24-622610d0c991
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
float amps;
float power;
float rissi;
float voltage;
float lat;
float longi;
CloudLocation location;
Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
which are called when their values are changed from the Dashboard.
These functions are generated with the Thing and added at the end of this sketch.
*/
#include "thingProperties.h"
void setup() {
//Initialize serial and wait for port to open:
Serial.begin(9600);
//This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);
//Defined in thingProperties.h
initProperties();
amps = 3.8;
power = 0;
rissi = 0;
voltage = 221.4;
lat = 11.945621;
longi = 121.937164;
location = {lat, longi};
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
WiFi.printDiag(Serial);
pinMode(ledPin, OUTPUT); // sets the digital pin 13 as output
}
void loop() {
ArduinoCloud.update();
//Serial debug stuff
Serial.print("Connected, IP address: ");
Serial.println(WiFi.localIP());
rissi = WiFi.RSSI();
Serial.print("RISSI: ");
Serial.println(rissi);
//Turn on an LED to show the module is connected
if(WL_CONNECTED){
digitalWrite(ledPin, HIGH);
}
else{
digitalWrite(ledPin, LOW);
}
//Inc/Dec the power variable 0 to 2000 triangle wave
if (power >= 2000.0){
value = -50;
}
if (power == 0.0){
value = 50;
}
power = power + value;
}