-
Notifications
You must be signed in to change notification settings - Fork 114
Browser Client
This topic shows you how to interact with Zetta APIs using the Zetta Browser Client. In addition to controlling device transitions, the client app provides a wealth of information about your Zetta instance. This is an excellent tool for development and debugging.
You can point the browser client to any running instance of a Zetta server. However, in this topic, we assume you have completed the Mock device tutorial and can run that project successfully.
-
cd to the root directory of your
hello-zetta
project. -
Start the Zetta server.
node index.js
-
Open a browser hit this URL. It points your locally running Zetta instance to the Zetta browser app running in the Cloud.
http://browser.zettajs.io/#/overview?url=http://127.0.0.1:1337
-
Ensure the LED is listed, as shown in this screenshot:
-
Click the
turn-on
button and ensure the LED state changed fromoff
toon
. -
Click the
turn-off
button and ensure the LED state changed fromon
tooff
. -
Click
LED
to show details for the driver, including requests, responses, events, states, and properties.
Need help? Visit the Zetta Discuss List !
Need help? Visit the Zetta Discuss List ! |
---|
About Zetta
Videos and webcasts
- NEW! Building with Zetta
Tutorials
- NEW! Zetta tutorial series
- Quick start
- Configure a simple device
- Build a mock LED device
- Use the browser client
- Deploy a Zetta server to Heroku
Understanding Zetta
Writing Zetta drivers
- Finding Zetta device drivers
- Create a device driver from starter code
- More coming soon...
Using streams
Reference