How can I send data from website to nodemcu ? For example If I sent 1 from website to nodemcu then the fingerprint sensor with nodemcu will go to enrollment mode , If 2 , it will go to finger verification mode? Please show me both server and client side code.
1 Answers
Hi.
There are many different ways to achieve that.
- You can send HTTP requests: for example, buttons that when clicked make requests on different paths. For example, a button with “1” and another button with “2”.
- You can create an HTML form: you insert or select a value to send to the board.
- You can use websockets to send data from client to the server.
We have tutorials about all these topics in the “Learn ESP32 with Arduino IDE” course and in the “Build Web Servers with the ESP32 and ESP8266” eBook.
Let me know if you need further help.
Regards,
Sara