Arduino wifi sheild is not working mqtt 2.0 is not working


#1


it is showing errors ,like this please help me!!


#2

from the last line in the error i think you have selected nodemcu board.


#3

I WANT TO CONTROL 4 SERVOS WITH ARDUINO D1 MNI WITH THIS video reference


#4

are you referring to this board https://wiki.wemos.cc/products:d1:d1_mini
follow this steps:
in your arduino ide install CayenneMQTTESP8266 library and also add the esp8266 board manager url (http://arduino.esp8266.com/stable/package_esp8266com_index.json).
next on your cayenne dashbaord add new device and select bring your own thing. this will give you MQTT credentials.
next in tour arduino ide open cayenne Mqtt esp82266 example code, add the Mqtt creditional, select the appropriate board and upload.
this will add your device to cayenne.

to control servo, add custom slider widget, fill in all the details and select channel as 1. next add this to your code.
CAYENNE_IN(1)
{
int x= getValue.asInt();
myservo.write(x);
}

similarly do for other servos.