Remarks

AdafruitIO
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.DataLoggers.AdafruitIO

Examples

Single value to a feed in the default group POST http://io.adafruit.com/api/v2/{UserName}/feeds/{FeedKey}/data where FeedKey is the AdafruitIO key for the feed the data is to be added to.

Single value to a feed in a named group POST http://io.adafruit.com/api/v2/{UserName}/feeds/{Group}.{FeedKey}/data where Group is an AdafruitIO group key and FeedKey is the key for the feed in that group.

Characteristic Locus
Inheritance System.Object > AdafruitIO
Namespace Meadow.Foundation.DataLoggers
Assembly AdafruitIO.dll

Syntax

public class AdafruitIO : object

Constructors

AdafruitIO(String, String, String)

Create a new AdafruitIO object

Declaration
public AdafruitIO(string userName, string iokey, string group = null)

Parameters

Type Name Description
System.String userName

Adafruit username

System.String iokey

Write key

System.String group

group

Properties

Group

Adafruit feed group This identifies the Adafruit feed group that will accessed

Declaration
public string Group { get; set; }

Property Value

Type Description
System.String

IOKey

Get or set the AdafruitIO AIO key. This key allows this class to identify itself with AdafruitIO and log data with the service.

Declaration
public string IOKey { get; set; }

Property Value

Type Description
System.String

URI

URI of the AdafruitIO api

Declaration
public string URI { get; set; }

Property Value

Type Description
System.String

UserName

Adafruit account profile username This name identifies the Adafruit IO user account that the feed belongs to

Declaration
public string UserName { get; set; }

Property Value

Type Description
System.String

Methods

PostValue(SensorReading)

Send a single value to AdafruitIO

Declaration
public void PostValue(SensorReading Value)

Parameters

Type Name Description
SensorReading Value

Value to send to AdafruitIO.

PostValues(SensorReading[])

Post a series of values to AdafruitIO.

Declaration
public void PostValues(SensorReading[] Values)

Parameters

Type Name Description
SensorReading[] Values

Array of values to send to AdafruitIO.