https://github.com/djaus2/sensorblazor_arduino
Mirrors SensorBlazor repository .NET Core Console apps in that Arduino Sketches send Sensor data to Azure IoT Hub via the SensorBlazor service.
https://github.com/djaus2/sensorblazor_arduino
arduino azure azure-iothub blazor blazor-webassembly cpp iothub sketch
Last synced: about 2 months ago
JSON representation
Mirrors SensorBlazor repository .NET Core Console apps in that Arduino Sketches send Sensor data to Azure IoT Hub via the SensorBlazor service.
- Host: GitHub
- URL: https://github.com/djaus2/sensorblazor_arduino
- Owner: djaus2
- License: cc0-1.0
- Created: 2020-10-26T10:29:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-31T03:40:14.000Z (over 5 years ago)
- Last Synced: 2025-04-23T18:19:26.408Z (about 1 year ago)
- Topics: arduino, azure, azure-iothub, blazor, blazor-webassembly, cpp, iothub, sketch
- Language: C++
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SensorBlazor_Arduino
Mirrors [SensorBlazor](https://github.com/djaus2/SensorBlazor) repository .NET Core Console apps in that Arduino Sketches send Sensor data to Azure IoT Hub via the SensorBlazor service using Http POST.
## Blazor Service of monitoring these Azure IoT Hub Posts:
[BlazorD2CMessages](https://github.com/djaus2/BlazorD2CMessages)
## Sensor types:
From **SensorBlazor** Shared Project:
```
public enum SensorType {temperature,pressure,humidity,luminosity,accelerometer,environment,sswitch}
```
Indexed from zero.
## BlazorIoTHubJsonSim
Generates simulated sensor data and sends to the Blazor Service.
### Sample Serial Output
```
IP Address: 192.168.0.21
making POST request
Sensor Data: {
"No": 0,
"Id": "Sensor0",
"SensorType": 0,
"Value": 199.8
}
Status code: 200
Response: Sensor0
Wait 5 seconds
making POST request
Sensor Data: {
"No": 1,
"Id": "Sensor1",
"SensorType": 1,
"Value": 199.8
}
Status code: 200
Response: Sensor1
Wait 5 seconds
```
### Monitored IoT Hub Submissions
```
No. Id Sensor Type Value Values State TimeStamp
2 Sensor2 humidity 199.8 null False. 0
1 Sensor1 pressure 199.8 null False. 0
0 Sensor0 temperature 199.8 null False. 0
```
## BlazorIoTHubTemplate
A template for sketches that read actuial sensor data
### Sample Sketch Serial Output
```
making POST request
Sensor Data: {
"No": 0,
"Id": "Sensor0",
"SensorType": 0,
"Value": 137.035
}
Status code: 200
Response: Sensor0
Wait 5 seconds
```
### Monitored IoT Hub Submissions
```
No. Id Sensor Type Value Values State TimeStamp
0 Sensor0 temperature 137.035 null False. 0
0 Sensor0 temperature 137.035 null False. 0
0 Sensor0 temperature 137.035 null False. 0
```
## Real Sensors based upon the Template.
Added:
- BME280
- DHT22
- _More to come._ Requests?