Jump to content

Sound Pressure Level Bricklet in javascript client returns Error:31

Recommended Posts



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


Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...