Configuring bletool.
Now you can use the bletool to test your BLE function.
root@GL-S1300:~# bletool on
root@GL-S1300:~# bletool discovery_type 1 1
OK
root@GL-S1300:~# bletool discovery 1 1 0
OK
af000045d1e43df801ff1f0201061bff570100a0c931e781473f364824a724d7d338040
2f83de4d1 4500
af040045d1e43df801ff0f0a094d492042616e6420320302e0fe
d0009238c444f07001ff0e02011a0aff4c001005031802dcbd
d0049238c444f07001ff00
You can find a detailed documentation
about bletool https://github.com/gl-inet/ble2mqtt.
MQTT
MQTT is a machine-to-machine (M2M)/"Internet of Things"
connectivity protocol. You can find official document in mqtt.org.
This guide will give you a step to step guide of how to send
message to GL.iNet GoodCloud and AWS.
Send Data to GoodCloud
GoodCloud is our Cloud based on MQTT under development. Now
you can use it for demo purpose related to BLE. You can contact
us if you have any suggestions by sending an email to
admin@goodcloud.xyz.
All you need to do is to register an account in GoodCloud.xyz and
bind your X750 or S1300 to your account.
Register your device on GoodCloud.xyz
Follow this docs to add devices on GoodCloud.
Where is the config file
The config file for cloud is in UCI. You will need to modify this
directly if you want to connect to your own MQTT cloud.
root@GL-S1300:~# cat /etc/config/glconfig
....