Coder Social home page Coder Social logo

interoberlin / ble-mqtt-bridge Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.04 MB

Daemon which facilitates Bluetooth Low Energy to MQTT interconnection

License: GNU General Public License v3.0

C++ 98.24% CMake 1.76%
ble gatt mqtt mqtt-bridge ble-mqtt-bridge mosquitto bluetooth-low-energy

ble-mqtt-bridge's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ble-mqtt-bridge's Issues

Is MQTTClient thread-save?

From dustsensord logging:

2018-05-30 12:03:46.329 (8248.138s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=9.3
2018-05-30 12:03:47.329 (8249.139s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.5 PM10=9.9
2018-05-30 12:03:48.330 (8250.139s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.6 PM10=9.8
2018-05-30 12:03:49.330 (8251.139s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.5 PM10=9.8
2018-05-30 12:03:50.330 (8252.140s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=9.8
2018-05-30 12:03:51.331 (8253.140s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=9.7
2018-05-30 12:03:52.331 (8254.140s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=10.1
2018-05-30 12:03:53.331 (8255.140s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=10.1
2018-05-30 12:03:54.331 (8256.141s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=10.1
2018-05-30 12:03:55.332 (8257.141s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=10
2018-05-30 12:03:56.332 (8258.141s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=8.8
2018-05-30 12:03:57.332 (8259.142s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.7
2018-05-30 12:03:58.333 (8260.142s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.5
2018-05-30 12:03:59.333 (8261.142s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.4 PM10=8.6
2018-05-30 12:04:00.333 (8262.142s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.6
2018-05-30 12:04:01.333 (8263.143s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.7
2018-05-30 12:04:02.334 (8264.143s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.4
2018-05-30 12:04:03.334 (8265.143s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.3 PM10=8.4
2018-05-30 12:04:04.334 (8266.144s) [nsor/bbe4/pm2.5 ]               main.cpp:108      0| Sensor 48100: PM2.5=6.2 PM10=8.4

I would have expected logging from mqtt10 and mqtt25

mosquitto_sub gives both queues:

$ mosquitto_sub -h buttercup-cumbersnatch.local -v -t "dustsensor/#"
dustsensor/bbe4/pm2.5 6.6
dustsensor/bbe4/pm10 10.0
dustsensor/bbe4/pm2.5 6.7
dustsensor/bbe4/pm10 9.8
dustsensor/bbe4/pm2.5 6.6

the linux process list gives both queues as well

$ ps  H -o 'pid tid cmd comm' | grep dust
 2403  2403 grep --color=auto dust      grep
25074 25074 ./bin/dustsensord           nsor/bbe4/pm2.5
25074 25076 ./bin/dustsensord           dustsensord
25074 25077 ./bin/dustsensord           ensor/bbe4/pm10

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.