Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reverieline authored May 26, 2023
1 parent 2afd2e9 commit f2f2bd6
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,31 @@ ESP32 BLE remote control for ZhiJia (ZhiGuang) LED controllers.
# Usage
1. Flash firmware to ESP32 devboard.
3. Connect to BLER_AP WiFi access point (password: 12345678) and configure home network connection.
4. Send GET requests to HTTP command endpoint: http://\<device ip\>/cmd/\<command name\>
4. Send GET requests to HTTP command endpoint: http://\<device ip\>/cmd/\<command name\>\<room id: 0..9\>

For example, direct your browser to:
- http://bler.lan/cmd/bind
- http://bler.lan/cmd/on
- http://bler.lan/cmd/off
# Binding
To bind device to room 1:
- Power off device.
- Direct your browser to http://bler.lan/cmd/bind1 .
- Simultaneously power on device.
The device should blink several times to indicate successful binding.

# Unbinding
To unbind device use the same steps s for binding:
- Power off device.
- Direct your browser to http://bler.lan/cmd/unbind1 .
- Simultaneously power on device.
The device should blink several times to indicate successful binding.

# Room 0
To send command to all devices, use room id 0. For example, to put all light on, send GET request to http://bler.lan/cmd/on0

# Available commands
- bind - bind device to remote, to specific group (room)
- unbind
- on
- off
- a - put first LED channel to max brightness and second channel to zero
- b - put second LED channel to max brightness and first channel to zero
- ab - both LED cahnnels to max brightness
- night

0 comments on commit f2f2bd6

Please sign in to comment.