NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

ESP32-GRBL dynamic values

Open leo1988joseph opened this issue 3 years ago • 2 comments

Hi, I would like to know when I flash the dbring library to ESP32 and configure it with a board (Diamond Chimp), it works when I connect with the grbl controller in Android connected via BLE. I want to know when I send a Gcode via BLE to the ESP32, which file or exact line receives the value so that it moves the motor? Which variable can accept the value (x,y coordinates) to move the motor and in which file?

Thanks

leo1988joseph avatar Sep 13 '22 04:09 leo1988joseph

Assuming the esp32 is operating as a BLE server all you need is a writable characteristic. When the client writes the data to this your code will get a callback where you can then handle the new data.

h2zero avatar Sep 13 '22 14:09 h2zero

image

This is the setup I am using. I basically want the coordinates of x and y axis to be provided from my phone via BLE. But I am not getting the file to were the coordinate has to be provided.

leo1988joseph avatar Sep 13 '22 15:09 leo1988joseph