Control MagicBlue ble light bulb doesn't work #1908
Replies: 4 comments
-
Posted at 2017-01-09 by @gfwilliams What you're doing looks ok... Can you try just sending the data explicitly with:
It'd remove one potential source of problems. I notice that what you're sending isn't related to what's in the comment at all - is that intentional? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-09 by Marko @gfwilliams, thank you very much for support. Will try this evening if it works. I confirm, comment is totally unlinked from content. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-09 by Marko Like a charm...thank you @gfwilliams! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-09 by @gfwilliams Great! Looks like there's an issue with Espruino's conversion of strings into integers. For instance For now I'd use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-01-06 by Marko
Hello!
I am trying without success since couple hours to make work a simple system: button press turns on a light bulb.
Regarding the reverse engineering of the bulb https://medium.com/@urish/reverse-engineering-a-bluetooth-lightbulb-56580fcb7546
I managed to control the bulb from a Cordova app, so the javascript should already be ready. I manage to connect to the device, to get the service and characteristic I need...but cannot make it to writeValue correctly (the bulb is not reacting). No error is thrown.
I suppose the problem hides in the value passed - in Cordova through I library should be an ArrayBuffer - but here?
My code
Any suggestion will be very appreciated!
Beta Was this translation helpful? Give feedback.
All reactions