gl-inet / ble2mqtt Goto Github PK
View Code? Open in Web Editor NEWBLE 2 MQTT bridge on GL.iNet IoT gateway
BLE 2 MQTT bridge on GL.iNet IoT gateway
When tried to install I got this error
root@GL-S1300:~# opkg install bletool
Unknown package 'bletool'.
Collected errors:
* opkg_install_cmd: Cannot install package bletool.
Then I used Plug-ins
panel and found gl-bletool
installed gl-bletool
and got the bellow errors.
root@GL-S1300:~# bletool discovery_type 1 1
ERROR: no response.
root@GL-S1300:~# bletool discovery 1 1 0
ERROR: no response.
I am using S1300 and I have many bluetooth devices in my house.
Dear Team,
I have a GX-750 Modem and I was able to install the bletool_1-2_mips_24kc.ipk and get the data on the console.
I am trying to push ble data to my own mqtt server. However, in this script, i am only trying to store date to and read from the file blesnipper. However, the data that gets written is a 'ok' message in the file.
Help needed to resolve this, i am a little new to openwrt.
#!/usr/bin/sh
/bin/sh /usr/share/libubox/jshn.sh
#while true
#do
#sleep 5
bletool on
bletool discovery_type 1 1
bletool discovery 1 1 0 | awk '{print;exit}'> /tmp/blesniffer.log
bletool end_procedure
adv_data= `awk '{print}' /tmp/blesniffer.log`
date=`date '+%Y%m%d%H%M%S'`
json_init
json_add_string "api" "/user/data"
json_add_object "data"
json_add_string "date" "$date"
json_add_string "advertising data" "$adv_data"
json_close_object
json_close_object
data=`json_dump`
#ubus call mqtt pub "$data"
#rm /tmp/blesniffer.log
Reading the Bletool Commands Manual I have understood that when I use the command 'bletool discovery' the scanner will cycle through all the three advertising channels in a round robin fashion.
I would like to know through which channel (37, 38 or 39) was every advertising message sent. I have tried with all of the three options for print_level but it is not showing me the channel used.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.