|All Versions||5.1.0, 5.0.0, 3.0.0, 2.1.1, 2.0.2, 2.0.1, 2.0.0, 1.0.0|
Extend Patriot IoT to support NCD 8 Relay board Patriot provides support for controlling IoT devices using Alexa and iOS devices. This plugin adds support
Device OS Version:
This table is generated from an automated build. Success only indicates that the code compiled successfully.
This content is provided by the library maintainer and has not been validated or approved.
A Patriot plugin to support NCD 8 Relay boards
This library makes it used to support relay devices using the NCD 8 relay board.
Include this library in a Photon sketch running on the NCD 8 relay board. Refer to the more complex examples in the main Patriot IoT examples directory.
This example creates a single device connected to relay 1. You can view the state of the relay using the LED associated with relay 1 on the 8 Relay board.
A behavior is setup to control this LED with an event named "Relay".
Since Patriot supports automatic detection by the iOS app and Alexa, either of these can be used to control the relay once this sketch is loaded to a Photon. There may be a 15 minute delay before Alexa starts to work, since a "Discover Devices" cycle is needed. You can manually invoke a discovery using the Alexa app to eliminate the delay.
Refer to the Patriot Github repository and documentation for more information.
Here's how you can make changes to this library and eventually contribute those changes back.
To get started, clone the library from GitHub to your local machine.
Change the name of the library in
library.properties to something different. You can add your name at then end.
Modify the sources in
After your changes are done you can upload them with
particle library upload or
Upload command in the IDE. This will create a private (only visible by you) library that you can use in other projects. Do
particle library add IoT_myname to add the library to a project on your machine or add the IoT_myname library to a project on the Web IDE or Desktop IDE.
At this point, you can create a GitHub pull request with your changes to the original library.
If you wish to make your library public, use
particle library publish or
Copyright 2017 Ron Lisle
Refer to the included LICENSE file.