Mono Wireless TWELITE SPOT Local Router Example
Set ESP32 as a websocket client.
You can transfer packet data string (same as App_Wings output, ModBus ASCII format) to the websocket server in the LAN.
- Modify Wi-Fi / WebSocket configs in the sketch file.
- Run a WebSocket server in the LAN.
- Upload & Run the sketch.
- Firmware
- App_Wings (>= 1.3.0)
- Environment
- Arduino IDE (1.x)
- ESP32 Arduino core (>= 2.0.5)
- Libraries
- MWings (>= 1.0.0)
- arduinoWebSockets (>= 2.3.6)
extra/python-websocket-server/server.py
is an example script for receiving data from ESP32.
$ pip3 install websocket-server
$ python3 server.py
- Display a message when a new client connects
- Display packet string when new data arrives
Copyright (C) 2023 Mono Wireless Inc. All Rights Reserved.
Released under MW-OSSLA-1J,1E (MONO WIRELESS OPEN SOURCE SOFTWARE LICENSE AGREEMENT).