NRF.setTxPower(4) did the trick :)
much better, some delays at times but way better.
although i want it to be better. like the flic button.
any suggestions please?
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.
NRF.setTxPower(4) did the trick :)
much better, some delays at times but way better.
although i want it to be better. like the flic button.
any suggestions please?
the nordered flow i have is straightforward, i.e.
[{"id":"597ae332.73aaa4","type":"mqtt in","z":"99c290d2.1b2068","name":"","topic":"/ble/advertise/d8:19:e7:5b:3a:57/ffff","qos":"2","broker":"21fe8cb3.438fcc","x":160,"y":440,"wires":[["2b1d98d6.76c7b","d47b84a0.1d40e8"]]},{"id":"2b1d98d6.76c7b","type":"debug","z":"99c290d2.1b2068","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":410,"y":360,"wires":[]},{"id":"9efb6c2e.9426b","type":"hue-group","z":"99c290d2.1b2068","name":"Living Room","bridge":"fe3415a5.63152","groupid":"24","colornamer":true,"x":810,"y":500,"wires":[["1c68d506.5a4eb3"]]},{"id":"8a84c118.fdbae","type":"function","z":"99c290d2.1b2068","name":"On/Off","func":"var liv_light_bool = global.get(\"liv_light_bool\"); \nconst msg1 = {}\n\n \nif(!liv_light_bool){\n\n msg.payload={\n \t\"on\":[true],\n \t\"brightness\":[100],\n \t\"rgb\":[255,255,255],\n \t\"transitionTime\":[3],\n \t//\"colorloop\":[10],\n };\n \n}\n\nelse\n{\n msg.payload={\n \t\"on\":[false],\n \t\"brightness\":[0],\n };\n \n \n}\n\n\nmsg1.payload =\"digitalPulse(LED1, 1, 50);\";\n\nreturn [ msg, msg1];","outputs":2,"noerr":0,"x":530,"y":440,"wires":[["9efb6c2e.9426b"],["1660958b.f84e62","73e8e8a3.ba5848"]]},{"id":"1c68d506.5a4eb3","type":"function","z":"99c290d2.1b2068","name":"Set Global var","func":"global.set(\"liv_light_bool\",msg.payload.on); \nnode.status({fill:\"red\",shape:\"ring\",text:msg.payload.on});","outputs":1,"noerr":0,"x":1060,"y":500,"wires":[[]]},{"id":"1660958b.f84e62","type":"debug","z":"99c290d2.1b2068","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":670,"y":360,"wires":[]},{"id":"d47b84a0.1d40e8","type":"rbe","z":"99c290d2.1b2068","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":390,"y":440,"wires":[["8a84c118.fdbae"]]},{"id":"21fe8cb3.438fcc","type":"mqtt-broker","z":"","name":"Localhost","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"fe3415a5.63152","type":"hue-bridge","z":"","name":"Philips hue","bridge":"192.168.0.24","key":"vvB2GXGT15E6qEaaGTWzRwZVKoBXTcHYCnN25sGo","interval":"1500"}]