An Angular directive for editing Meshblu devices.
Install with bower:
bower install --save angular-meshblu-device-editor
To render a form based on a device's message schema:
<device-message-schema-container
device="controller.device"
message="controller.message"
selected-schema-key="controller.selectedSchemaKey"></device-message-schema-container>
Param | Type | Details |
---|---|---|
device |
object | A meshblu device containing either an old style messageSchema or a new style schemas.message property |
message |
object | The message data. This will be modified as the user fills in the form |
selected-schema-key |
string | The key corresponding to the currently selected schema |