Skip to content

r-hryniewski/iothub-simulatedtelemetry-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iothub-simulatedtelemetry-function

Simple function to send simulated telemetry to IoT Hub

Simple Azure function to simulate thermometer device that sends random temperature readings to Azure IoT Hub every one minute.

Just fill in DeviceEndpoint setting in your Azure Function with your IoT Hub Device endpoint, publish this project and have fun.

Sample message in IoT Hub (retrieved in Stream Analytics) looks just like that:

{
	"degrees":27,
	"EventProcessedUtcTime":"2018-12-24T20:12:23.2158015Z",
	"PartitionId":0,
	"EventEnqueuedUtcTime":"2018-12-24T20:11:00.2900000Z",
	"IoTHub":{
		"MessageId":null,
		"CorrelationId":null,
		"ConnectionDeviceId":"thermometer",
		"ConnectionDeviceGenerationId":"636812039420199009",
		"EnqueuedTime":"2018-12-24T20:11:00.3000000Z",
		"StreamId":null
		}
}

About

Simple function to send simulated telemetry to IoT Hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages