To demonstrate the functionality of connecting a device directly to Apigee Link via MQTT.
discover_resource.js
- HTTP based scouting mechanism for creating MQTT based devices
example-device-subscriptions.js
- MQTT based mock device.
mqtt-client.js
- A wrapped MQTT client to follow the node event emitter pattern more closely.
- emits topic events of incoming MQTT message. The MQTT packet is the additional argument.s
mqtt-scout.js
- Scout class for MQTT devices. Creates an HTTP based resource for scouting.
- Wires up the MQTT connection to Zetta after a device is discovered or provisioned.
mqtt_device.js
- Dynamic Zetta device using the Zetta MQTT protocol to generate a device representation usable by Zetta.
server.js
- The MQTT broker. Adds additional functionality to an in memory Mosca broker.
zetta-target.js
- The Zetta target server.
- MQTT devices announces presence to broker.
- Broker sends an HTTP request to a zetta target server running the MQTT scout.
- Zetta initializes device. Sends message to broker that device has been created.
- Device sends representation of self to broker, and then is passed to Zetta.
- Zetta dynamically configures device based on capabilities expressed over MQTT.
This is not an officially supported Google product.