cuky3 Geschrieben September 28, 2020 at 14:12 Geschrieben September 28, 2020 at 14:12 Hello all, I have the following setup: Master Brick, Accelerometer 2.0, Ethernet Master Extension and the RED brick. I have successfully configured the local-area network, assigned the IP address and a WebSocket port to my stack. Then I tried in-browser JavaScript ExampleCallback.html for the accelerometer on my local computer which works very well with the assigned IP and port (the RED Brick is not yet connected). However, when I connect a RED brick to the stack and upload ExampleCallback.html with JavaScript binding to the RED brick to use it as a simple web interface I get an error 31 when I press start example. I am using the IP address of a RED brick, and a web socket port which I assigned earlier in the Brick Viewer ethernet extension tab. Also, when I try running the ExampleCallback.html on my local computer I get the same error when the RED brick is connected. Does anybody have any suggestions on what I should try? Zitieren
photron Geschrieben September 28, 2020 at 14:48 Geschrieben September 28, 2020 at 14:48 Error 31 is "Timeout". The most common cause for this is that you used the wrong UID in the example. Are you sure it's error 31? Error 13 is "Connection Failed" that could be caused by wrong IP address or port configuration. The RED Brick does not used the WebSocket port configured on the Ethernet Extension itself. For the RED Brick you need to configure the WebSocket port on the RED Brick itself: Brick Viewer > RED Brick > Settings > Brick Viewer > Web Socket Port. 1 Zitieren
cuky3 Geschrieben September 29, 2020 at 07:35 Autor Geschrieben September 29, 2020 at 07:35 My mistake, the error was 13. I have set RED Brick WebSocket port and now it works! Thank you 🙂 Zitieren
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.