Hello,
I've developing a project using nano 33 IoT board.
I'm facing problems with the Wi-Fi and Bluetooth, In my project I used IoT cloud and then faced a problem connecting to the device in the cloud.
In the IoT cloud the nano 33 IoT board stays offline for the most of the time and it goes online randomly for sometime and when you press reset or you upload a new code with some changes or you disconnect the board and it goes offline and after reconnection it still stays offline. I've tried all the troubleshooting methods like :
- Use five different nano 33 IoT boards just to make sure the boards are working.
2.Updated the WIFININA libraries and WIFININA firmware and updated the existing Arduino cloud agent.
3.I have updated my Arduino ide for the new version.
4.first I have uploaded my project code and then I tried with a basic example codes to check but didn't solve my problem.
5.I have used different Arduino IoT cloud accounts and one of the account has a premium.
After facing these problems and tried all the troubleshooting methods that already mentioned on the Arduino forum. I have decided to switch to BLE instead of cloud.
But, Now I'm facing similar problem with BLE. I have used the example codes of Arduino BLE and 3different apps both on IOS and Android, 5 different boards all working fine.
I see the Bluetooth visibility in the app randomly but most of the time I couldn't see the Bluetooth on. I have connected to the Bluetooth at some point but when I tried to reset it or upload a new code or changes in the code, I don't see the Bluetooth visibility anymore in the all the apps and devices.
if someone has a solution to the problem I'm facing please let me know.
I Know some Of you might ask for the code that I have using to the understand the problem, but I'm able to go online and read the values on the dashboard of the cloud with the same code that I have succeeded in reading values.
but I'm attaching the simple code that I have used.
<code :
#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();
count=0;
}
void loop() {
ArduinoCloud.update();
count++;
Serial.println(count);
// Your code here
}