Seeed-Studio / Wio_Link

Wio_Link 8266
http://seeed-studio.github.io/Wio_Link/
182 stars 64 forks source link

How to onboard wio link without wio mobile app? #55

Closed richacker closed 6 years ago

richacker commented 7 years ago

I am trying to create a web solution for wio link where I can sign up and login. Further, while creating a node, using following code:

curl -H"Authorization: token aKleqQebIsjmQMSCokemtgNXMD4Y7OTe3uyzEL1iwwA"-d name=node_1 -d board="Wio Link v1.0"https://us.wio.seeed.io/v1/nodes/create

{

"node_key":"e3d3b0fe920ddc3c69393fdbf83a2114",

"node_sn":"819554bd9519c94a19cc7fbd32447118"

}

I am unable to link the newly created board to the physical board kept with me. When I onboard new board on the app, it is added as another board which works fine but the board created through API remains offline forever. How do I create a wio link board and get it working without mobile app?

KillingJacky commented 7 years ago

When creating a device, the last step is writing the retrieved node_sn and node_key into the Wio device. This is done via UDP. Now the App is doing this thing. To build a web solution, the browser has no capability to send UDP packages, a standalone proxy application or browser plugin is needed to transform the network communication from websocket (or other protocol that the browser can issue) to UDP. Another way to write the private key is using a usb cable, write through the Serial interface of the Wio device. Would you like to drop an email to me (xuguang.shao@seeed.cc) if you still have interests? I can explain more details to you and maybe help some in writing the private key to device.

KillingJacky commented 6 years ago

Will close this issue and turn into email loops.