mifune Posted July 5, 2018 at 06:54 PM Share Posted July 5, 2018 at 06:54 PM Hi, I connect a Sound Pressure Level Bricklet to brickd without problems. Data already be shown in Brickv (2.3.15). If I use the simple example from website [https://www.tinkerforge.com/de/doc/Software/Bricklets/SoundPressureLevel_Bricklet_JavaScript.html#sound-pressure-level-bricklet-javascript-examples]. After connected I receive getting the data an Error:31. As I see data from the bricklet are received from Brickd. The connection between node.js client and brickd is also working. What can be the reason for that? Thanks in advance Quote Link to comment Share on other sites More sharing options...
photron Posted July 6, 2018 at 03:04 PM Share Posted July 6, 2018 at 03:04 PM Error code 31 means timeout. The Bricklet didn't respond in time to a request send by the example, see https://www.tinkerforge.com/de/doc/Software/Bricklets/SoundPressureLevel_Bricklet_JavaScript.html#api. Did you change the UID in the example to the UID of your Bricklet, as stated in line 5 of the example? var UID = 'XYZ'; // Change XYZ to the UID of your Sound Pressure Level Bricklet If you didn't then the example tries to talk to a Bricklet that doesn't exists and therefore will not answer, resulting in a timeout error. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.