Skip to content

Instantly share code, notes, and snippets.

@olafloogman
Created December 4, 2014 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olafloogman/56e815ef4be47ff4c0e7 to your computer and use it in GitHub Desktop.
Save olafloogman/56e815ef4be47ff4c0e7 to your computer and use it in GitHub Desktop.
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