Web Thing library - ED1 not found

Issue #170 resolved
connochaetes created an issue

Hi (again).

Right now, I’m testing the Web Thing library according to this activity card: http://microblocks.fun/cards/WOT_WebButton.pdf

  • Connecting a Microbit board via USB to my Raspberry Pi gateway is working fine. I am controlling a Meross Smart WiFi Plug (which is a great feature). In addition, the Microbit’s LED matrix is showing, which button is pressed.
  • Then I checked out Citilab’s ED1. The ED1’s TFT display is showing, which button is pressed. But sadly, connecting a Citilab ED1 board via USB to my Raspberry Pi gateway won’t work. The device isn’t found.

I attached a screenshot of the Microblocks scripts.

(In the long run, I’m planning to connect the ED1 via WiFi to the WebThings gateway. But I guessed, the USB connection would be a first step.)

Any suggestions would be welcome.

Comments (2)

  1. Bernat Romagosa

    Hi!

    The WebThings library detects whether your board has WiFi capabilities. If that’s the case, it runs in WiFi mode, not on USB mode.

    In other words, you can’t use a WiFi board as a USB webthing.

    Hope that clears it

  2. connochaetes reporter

    Finally, it’s working. Yay! My first little project is switching a WiFi plug on and off by using Citilab’s WiFi enabled ED1 with just a small battery. That’s just a proof of concept.

    BTW: I found the condidional mentioned by Bernat Romagosa in the block “start WebThing server”.

    (I deleted my prior posts, so future readers won’t be too confused.) Here are some details. Perhaps they are helpful for someone:

    • The Raspberry Pi gateway is connected via LAN (not WiFi).
    • I read the activity cards on: microblocks.fun I remembered that I can find the corresponding ubp files in the MicroBlocks example folder. I used the pushbutton example as a basis.
    • The Raspberry Pi gateway is connected via LAN (not WiFi). It’s WWW accessable via https://SUBDOMAIN.mozilla-iot.org (where ‘SUBDOMAIN’ is the subdomain name I’ve chosen). I added the WiFi connected ED1 by giving it’s URL (the one from the “IP address” block from MicroBlocks).

    @Bernat Romagosa

    @Bernat Romagosa

    Again, thanks to the whole MicroBlocks team for the great software. It’s quite impressive, that things can be solved without having to dig deep into complex code. Obviously, MicroBlocks is based on sustainable thoughts.

  3. Log in to comment