AzureMobileApp (community library)

Summary

Name Value
Name AzureMobileApp
Version 0.1.0
Installs
License GPL
Author Brian Sherwin github:bsherwin; Paul DeCarlo github:toolboc; Bill Fink github:WhatsTheBigIT
URL https://github.com/toolboc/AzureMobileApp
Repository https://github.com/toolboc/AzureMobileApp.git
Download .tar.gz
All Versions 0.1.0, 0.0.8, 0.0.7, 0.0.6

Library for abstracting Azure Mobile App Easy Tables REST Api for particle.io devices

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

AzureMobileApp

Library for abstracting Azure Mobile App Easy Tables REST Api for particle.io devices

Prerequisites

Walkthrough and Tutorial

Demo

Usage

Obtain the value for AzureAppServiceURL from:

(image removed)

Example

#include "AzureMobileApp.h"

#define MYSERVICE "AzureAppServiceURL"

#define MYKEY "AuthKey(IfEnabled)"

AzureMobileApp ama;

void setup() { Serial.begin(9600); delay(10000); ama.configure(MYSERVICE, MYKEY); }

void loop() { delay(5000); String table = "Data";

//send JSON formatted data // { "Value1":"1", "Value2":"2", "Value3":"3" }

char buffer[100]; snprintf(buffer, sizeof(buffer), "{\"Value1\":\"1\", \"Value2\":\"2\",\"Value3\":\"3\"}");

Serial.println("**"); Serial.println("Publishing data from buffer to AMA"); Serial.println("**"); ama.create(table, buffer);

Serial.println("**"); Serial.println("Reading data from " + table); Serial.println("**"); String queryPayload = ama.read(table); Serial.println queryPayload;

}

Browse Library Files