Jump to content

Recommended Posts

Geschrieben

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

 

Geschrieben

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.

Join the conversation

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

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...