~/talk

Using C# Source Generators to Build a .NET IoT Device

Talkat NDC Melbourne 2022 · 2022-06-20..06-24· [embedded-and-hardware, dotnet]
slides:none on file

Raspberry Pi 4 runs a .NET 6 app that registers a device in Azure IoT Hub, reads a BME280 sensor (temperature humidity pressure) and drives a WS2812 LED strip via System.Device.Gpio and IoT.Device.Bindings; telemetry posts to the Hub and cloud forwards either queued cloud‑to‑device messages or direct method calls. A C# Source Generator emits InitDeviceClient, send methods and desired/reported property boilerplate; repo includes 41 approval tests and GitHub Actions that produce the NuGet packages shown.

AI-written summary · about

  1. 0:00Start
  2. 0:47Raspberry Pi
  3. 12:55How Iot System Looks like
  4. 13:44Iot Hub
  5. 18:04Sdks
  6. 18:15Device Sdk
  7. 23:58Information How To Set Up the Device
  8. 24:49Source Code Generator
  9. 29:17How Do We Debug Source Code Generator
  10. 30:36Github Action
  11. 33:40Original Code
  12. 36:30Code Generator
  13. 36:46The Iot Hubcode Generator
  14. 40:21Test the Code
  15. 40:51Testing
  16. 45:03Test Code
  17. 47:42Azure Iot Hub
  18. 50:02Iotic Cloud Client
  19. 53:19Query the Device Registry
  20. 57:51Questions
  21. 58:11What Happen if There Is no Internet Connection
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.