I experienced DASH not consistently connecting to network, or sometimes the connection drops unexpectedly.
What I did to make the connection more stable is to plug a rechargeable battery. This makes 100% network connectivity on startup (via USB or via pins).
But a plugged rechargeable battery will always make the board powered up even there’s no power on the USB/pins (makes this solution not workable for my end-product).
My solution is to add a capacitor (1000mf/10 volts) instead of a rechargeable battery so the charge will easily deplete when board is powered-down, but can hold-on enough for the network connection to be more stable on startup.
To test my setup, I’m using the following sketch:
boolean isRegistered;
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("Signal Strength: ");
Serial.println(HologramCloud.getSignalStrength());
Serial.print("Connection Status: ");
if (HologramCloud.getConnectionStatus() == 1) {
HologramCloud.setRGB("GREEN");
delay(500);
HologramCloud.offRGB();
} else {
HologramCloud.setRGB("RED");
delay(500);
HologramCloud.offRGB();
}
Serial.println(HologramCloud.getConnectionStatus());
Serial.print("Registered to Network: ");
isRegistered = HologramCloud.isRegistered();
Serial.println(isRegistered);
if (isRegistered) {
Serial.print("Sent Message to Cloud: ");
Serial.println(HologramCloud.sendMessage("Message from xxx", "test_message"));
}
delay(10000);
}
Just sharing this solution and hope it is a good one.