IOT cloud remote - map widget crash

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.

ThingProperties.h

#include <Arduino_ConnectionHandler.h>

const char DEVICE_LOGIN_NAME[]  = "cd53fd3b-b1c2-4393-a03d-6434f807719f";

const char SSID[]               = SECRET_SSID;    // Network SSID (name)
const char PASS[]               = SECRET_PASS;    // Network password (use for WPA, or use as key for WEP)
const char DEVICE_KEY[]  = SECRET_DEVICE_KEY;    // Secret device password


float amps;
float power;
float rissi;
float voltage;
int ledPin = 4; //LED connected to digital pin 4
int value;
float lat;
float longi;
CloudLocation location;


void initProperties(){

  ArduinoCloud.setBoardId(DEVICE_LOGIN_NAME);
  ArduinoCloud.setSecretDeviceKey(DEVICE_KEY);
  ArduinoCloud.addProperty(amps, READ, 2 * SECONDS, NULL);
  ArduinoCloud.addProperty(power, READ, 2 * SECONDS, NULL);
  ArduinoCloud.addProperty(rissi, READ, 2 * SECONDS, NULL);
  ArduinoCloud.addProperty(voltage, READ, 2 * SECONDS, NULL);
  ArduinoCloud.addProperty(location, READ, 2 * SECONDS, NULL);

}

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Sketch

/* 
  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;
}

A little more "tinkering"...............i installed IOT remote on an IPad and the map and other functions work just fine.

A bug in the Android app???????????????????????

Strange................Today the android app works, no changes made to anything?????????????

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.