Set PlayBulb Candle Color #1720
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2016-12-12 by @gfwilliams You could try changing What you're doing with Uint8Array sounds fine, but then And if you do the same from an app like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Posted at 2016-12-10 by Jan71099
The idea for my first Puck.js project is to use the puck a wall switch to control three BLE lamps (https://www.amazon.de/dp/B00PB4VXDS) i have. Based on some other code (https://codelabs.developers.google.com/codelabs/candle-bluetooth/index.html) this should be a simple task. So far i can connect, read the current color and set the name of the light. But setting the color doesn't work.
No catch block is called but the color of the light does not change. Im not really sure if
new Uint8Array([0x00, 255, 0, 0])
is the write type here but00FF0000
or\x00\xFF\x00\x00
does not work either. When i read the characteristic i get:I am thankful for any help or ideas.
Beta Was this translation helpful? Give feedback.
All reactions