-
-
@Gordon i am getting some issue which i am trying to handle. On my clients PuckJS it is so sensitive that even when puck is moved its event it getting triggered. But on my end its not that sensitive.
-
@Gordon Thanks for the feedback.
I have check but a strange behavior in puck. I am getting events for some other pins. I have setWatch for button but got event for Pin
D0
{ "lastTime": 859.655, "time": 859.96, "pin": D0, "state": false }
how should we handle this. Please suggest.
-
Hi All,
I am getting some issues with my code to handle the button event on the puck js. I think puck is too sensitive that its button event is fired even on movement of device. How can i improve this. Is their any documentation for what are all possible options we can pass to
setWatch();
Code which i am using is as followed. Please
setWatch(function(){ },BTN,{edge:"rising",repeat:true});
Should i use debounce, Can you give me some idea about debounce what is use of this.
-
Hi @Gordon,
Thanks For the updates, We are getting issue on all samsung devices including 6.0.1 devices.
I get the issue of NRF.setServices multiple called and i have read the documentation and follow the guideline as mentioned. Software on puck is working fine we have tested it on other devices.As we have also discussed issue of 133 is also coming with the puck device which is not even configured. :(
-
-
Hi @Gordon ,
In service detection issue, We have used the same code in the Nordic UART App shared. Services appears on other devices i have the NRF Connect app it shows the services in the puck device. I will try with the NRF connect on same device.
We are getting 133 in android app when we try to connect the puck device.
-
Hi @Gordon,
I am having some issues with the Puck device. We have build the application which required to be paired with Puck Device, One Some of the devices we are able to connect and all the things are working fine. But on some devices specially Samsung and some other custom os versions.We are some issues in pairning the device.
While connecting to the device we get 133 error and connection is not made sometime device get paired but later it get disconnected and not able to reconnect to device.
One more issue we are getting. In one device we are not able to detect the services running on the puck device. Which we have installed using the custom js script i have also asked earlier. (After restarting the (Android)device it start detecting).
Please help us to resolve this issue.
Thanks
With regards
Harminder Singh -
Thanks @Gordon i got the issue was the amount of data sent to device. I have read android documentation that it allows 20bytes as MTU which was the issues in my case i have broken the code into chunks and send it to device and it worked (y)
-
Thanks @Gordon but didn't get much help with above code. when i write the code the device line by line it start executing the code.
if complete code is written in single step then nothing happens.
-
@Gordon I was able to connect to device. And it works for one command. But i am not able to send a complete script. Can you share me some sample if possible how to pass the data to device in complex code. I have 100 +line of js. What is the best way to send data.
When i write this code to puck it didn't do anything
-
Thanks @Gordon let me try this :)
-
Thanks @Wilberforce @Gordon this is really helpful.
-
-
Hi All,
I am new to puck js and i am working on NRF service i need to make my service visible to other devices so i am passing options ,{ advertise:['1802']}); in when i setup a service.refer to http://www.espruino.com/Reference#l_NRF_setServices
I am getting following error
Uncaught Error: Unknown option "advertise"
at line 8 col 29
}, { advertise: [ '1802' ] });Please help me
Thanks @Gordon