Giter VIP home page Giter VIP logo

ble2mqtt's People

Contributors

alzhao avatar linmq avatar yaosir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

guerrerocarlos

ble2mqtt's Issues

ERROR: no response.

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.

ble2mqtt unable to read data to and from file

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

Bletool discovery: how to know from which channel I received an advertising msg

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.