alive-corpse / lywsd02-lywsd03mmc-mqtt Goto Github PK
View Code? Open in Web Editor NEWSimple shell script for sending temperature, humidity and battery level values from LYWSD02 and LYWSD03MMC sensors to the mqtt broker
Simple shell script for sending temperature, humidity and battery level values from LYWSD02 and LYWSD03MMC sensors to the mqtt broker
Hi, I would very much like to use your script but it gives me the error in the subject. Apparantly mine has different "handless" (whatever that may be) then in the script.
Gatttool gives me the following output with Primary:
primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x000b uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x0018 uuid: 0000180a-0000-1000-8000-00805f9b34fb
attr handle: 0x0019, end grp handle: 0x001c uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x001d, end grp handle: 0x0026 uuid: 0000181a-0000-1000-8000-00805f9b34fb
attr handle: 0x0027, end grp handle: 0x002a uuid: 00010203-0405-0607-0809-0a0b0c0d1912
attr handle: 0x002b, end grp handle: 0x002e uuid: 00001f10-0000-1000-8000-00805f9b34fb
attr handle: 0x002f, end grp handle: 0x0030 uuid: 0000fe95-0000-1000-8000-00805f9b34fb
Does this help as to change something in the script to make it work?
I've found usefull using retain flag by adding "-r" at:
mqtt="mosquitto_pub -h $host -p $port -r"
Can you add this preference to mqtt.conf file?
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.