Not sure how to determine the string length. - I could save to this in a local version of the module and monitor that.
I'll try the 100 length.
The remotes I have seem to send 1's after fixed length (33 bytes in most cases) as repeat code if a button is constantly hit. If the constructor knew the length, a repeated event could be emitted. Not sure how to handle or perhaps retrigger the code sent?
I've bee also thinking about how the codes could be shortened instead of sending a string of 1 and 0's, perhaps a hex code?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Not sure how to determine the string length. - I could save to
this
in a local version of the module and monitor that.I'll try the 100 length.
The remotes I have seem to send 1's after fixed length (33 bytes in most cases) as repeat code if a button is constantly hit. If the constructor knew the length, a repeated event could be emitted. Not sure how to handle or perhaps retrigger the code sent?
I've bee also thinking about how the codes could be shortened instead of sending a string of 1 and 0's, perhaps a hex code?