-
Notifications
You must be signed in to change notification settings - Fork 9
3. Registering your bot to RoboWriter
RoboWriter is a web dashboard powered by Azure IoT Hub and inspired by my first experience with programming: LogoWriter for the Apple IIGS. It uses this really cool JavaScript library that mimics turtle graphics commands.
Register your bot to RoboWriter and include the code provided (in the next stage) to see the motion path of your--and everyone else's--NodeBot! You'll need to register your bot in order to apply for the NodeBots Challenge.

- From command line, type
npm install -g iothub-explorer - After this process completes, edit the following command by replacing
SHAREDACCESSKEYwith your IoT Hub shared access key (only hub owner will have access to this via Azure Portal) andMYDEVICENAMEwith whatever you want to name your bot. Use numbers and letters only, and keep in mind that this name will be displayed publicly on the dashboard and identified to you, so keep it professional, my friends.
iothub-explorer create MYDEVICENAME --connection-string --login "HostName=huzzahbots.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=SHAREDACCESSKEY"
After a moment, you should see some text displayed confirming your registration. 3. Take note of your device name as well as the primary key displayed in the command line tool.
Hint: If the commands above don't seem to be working, you could be experiencing copy-and-paste formatting issues. Try pasting the code into your code editor and then copying it from there into your command line. See the troubleshooting page for more details.