Skip to content

Releases: rlisle/Patriot

Device Plugins

20 May 15:18
Compare
Choose a tag to compare

This update will break existing sketches.

The device specific code has been moved out of the IoT library and into separate libraries PatriotSwitch, PatriotLight, and PatriotFan. As a result, the way that devices are defined within a sketch has changed.

Unfortunately this has required changes to the API, so existing sketches will not work until changed to use the new API methods. The methods are very similar, so the changes should be fairly minor.

The main changes to sketches are:

  1. Plugins must be included for each type of device (light, fan, switch, etc)
  2. Since IoT does not know ahead of time about various devices, the calls to IoT to create devices are gone (eg. addLight, addSwitch, addFan, etc. are gone)
  3. Devices are defined directly, then passed to IoT via addDevice()
  4. Behaviors are passed a pointer to the device instead of a name.

Refer to the updated examples in both Patriot and in the plugins.

The current list of plugins in v1.1.2 are:

  • PatriotFan
  • PatriotLight
  • PatriotSwitch

A template plugin is provided to simplify creating your own plugins.

Fixed event name 'patriot'

28 Mar 13:30
Compare
Choose a tag to compare

Change the particle.io publish event name to patriot to work with Alexa smart home skill and iOS apps.
A future update will change this to allow specifying the event name, but for now it must be 'patriot' for the Alexa skill and iOS apps to work.

Also fixed lights to work with non-PWM pins. For these, any percentage over 49 will be considered On.

Change name to Patriot

24 Mar 12:26
Compare
Choose a tag to compare
Pre-release

Initially this was called ParticleIoT, but Patriot is easier to pronounce, and may allow other MQTT implementations in the future.

Particle V2 IoT library

17 Mar 11:17
Compare
Choose a tag to compare
Pre-release

Convert C++ libraries to a published particle.io v2 library.