Okay, so using the supplied sketch, getting a notation that the values are updating at the top of the screen, the new dashboards and the old dashboards, both set up... no values are showing up on the dashboard.
If I unplug the device, the notation of updating values at the top starts to increase in time appropriately.
Now, I'm a staff site reliability engineer... so either something is funky with the way the code works, or the system is down?
I'm on an NB1500 using an AT&T one rate CAT M1 SIM, same ones I use in my particle borons. AT&T dashboard shows a successful connection.
My Serial debugging shows I'm updating values without issues.
#include "arduino_secrets.h"
/*
Sketch generated by the Arduino IoT Cloud Thing "Test"
https://create.arduino.cc/cloud/things/0ee765f9-a257-48a0-9425-c2fb043c5f51
Arduino IoT Cloud Properties description
The following variables are automatically generated and updated when changes are made to the Thing properties
int distance;
Properties 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();
// 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();
}
int period = 1000;
unsigned long time_now = 0;
void loop() {
time_now = millis();
// Your code here
battery = analogRead(ADC_BATTERY) * (4.3 / 1023.0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 4.3V):
distance = millis() / 1024 / 1024;
Serial.print("Battery: ");
Serial.println(battery);
Serial.print("Distance: ");
Serial.println(distance);
ArduinoCloud.update();
while(millis() < time_now + period){
//wait approx. [period] ms
}
}