Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Arduino HTTP Post
POST https://myservicebusnamespace.servicebus.windows.net/your-event-hub/messages?timeout=60&api-version=2014-01 HTTP/1.1
Authorization: SharedAccessSignature sr=myservicebusnamespace.servicebus.windows.net&sig=tYu8qdH563Pc96Lky0SFs5PhbGnljF7mLYQwCZmk9M0%3d&se=1403736877&skn=MyPolicy
ContentType: application/atom+xml;type=entry;charset=utf-8
Host: your-namespace.servicebus.windows.net
Content-Length: 42
Expect: 100-continue
{ "DeviceId" : "ArduinoYun",
"SensorData" : [ { "SensorId" : "yun",
"SensorType" : "temperature",
"SensorValue" : 24.5
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment