i wanted to connect my wifi-shield with due Board to Arduino Cloud, but After i selected 3rd party device as esp8266 . and i tried to upload my code from cloud editor and it automatically detects due board ports and results error : due board doesnot support Arduino Cloud.
Does anyone have idea how i can overcome this problem?
you have to write a sketch for the esp8266 to communicate with the Arduino IoT Cloud. The esp8266 then can communicate with the Due for example over Serial.
The main problem is that Arduino Cloud does not support due board. but supports Esp 8266 which is my wifi Shield connected to due board. Is there library or any other way so that cloud detects my Wifishield8266.
int LED=13;
void setup() {
pinMode(LED, OUTPUT);
// 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();
}
void loop() {
ArduinoCloud.update();
// Your code here
randomval=random(0,100);
delay (500);
}
/*
Since LED1 is READ_WRITE variable, onLED1Change() is
executed every time a new value is received from IoT Cloud.
*/
void onLED1Change() {
if(lED1) {
digitalWrite(LED,HIGH);
}
else
{
digitalWrite(LED,LOW);
}
// Add your code here to act upon LED1 change
}```
if you do a web search for ESP8266 ESP-12E UART WIFI Wireless Shield you will get plenty of links on how to program and use the shield
I have a couple of the ESP8266 ESP-12E UART WIFI Wireless Shields but never use them prefering to use boards such as the ESP8266-NodeMCU-Lolin-V3