esp8266_12s

I wrote a sketch from \ resource \ Esp8266_01 at Esp8266_12. I received a response to the request http: //esp8266-01.local/ with a map of connected devices.

 I ran the script:

esp = Runtime.start ("esp", "Esp8266_01")

ada = Runtime.start ("Ada", "Adafruit16CServoDriver")

ada.attach (esp, "1", "0x40")

motor1 = runtime.start ("motor1", "MotorDualPwm")

motor1.setPwmPins (0,1)

motor1.attach (ada)

But, I do not get any engine action. The question is how to verify that data from the MRL is coming to ESP?

I, as I understand it, that there should be a chain: MRL-​​router-ESP-Adafruit16CServoDriver-engines.
Mats's picture

MRL needs to know the ip-address of the ESP8266

Hi

Your .understanding is correct. What's missing is that MRL need to know the ip-address of the ESP8266.

The default address set in MRL is 192.168.1.99

So after you start the ESP8266_01 service you need to set the host like this:

esp.setHost("192.168.1.100")

I hope it helps. If not then let me know. I have tested all the involved services before, but not in the combination you are trying now.