Interrupts And Timers
In this post, we’ll take a look at interrupts and timers in microcontrollers. I will show you how to implement it with an Arduino and with an ESP8266 or ESP32. When an interrupt is triggered, the microcontroller will pause what it’s doing and immediately run an ISR(Interrupt Service Routine) before returning to where it left off before.
Watchdog Timer
In this post, we’ll take a look at watchdog timers in microcontrollers. I will show you how to implement it with an Arduino and with an ESP8266 or ESP32.
ESP32 FreeRTOS Tutorial
Recently, I was using FreeRTOS on an ESP32, so I thought I’d make a post documenting it and showing you how to use it. FreeRTOS is an open-source real-time operating system used for embedded systems.
Wireguard Forwarding/WeakHostSend enabled Error Fix
I started using Wireguard as a VPN to connect into my home network some time ago. In fact I wrote about it in this post about docker containers I run on my home server. It worked fine on my smartphone but when later I tried it on a laptop I got the following errors: Warning: the “Ethernet3” interface has Forwarding/WeakHostSend enabled, which will cause routing loopsRetrying handshake with pear because we stopped hearing back after 15 secondsHandshake for peer 1 did not complete after 5 seconds, Retrying
C# Local Functions
In this code snippet, we’ll take a look at local functions in C#.Local functions can be declared and used only within another function. This can be useful for organizing your code. For example, if a function gets too long, you would usually break it up into smaller ones, which will fragment your code. This is the perfect case for using local functions to logically group/contain these smaller functions within the parent function.
Calling The Command Line In C# With CliWrap
In this code snippet, we will learn how to call the command line in C#. We will be using a Nuget package called CliWrap which makes it easier compared to using the System.Diagnostics.Process class. But I will also show you how to use the Process class if you don’t want extra dependencies in your project. And it’s still a useful class as it can be used to run any executable (.exe file) from your C# code.
Fullstack Serverless Blazor App With Azure Functions
In this post, I will show you how to create a Blazor C# WebAssembly app with a serverless backend utilizing Azure Functions. The data will be persisted to Azure Tables, Blobs and Files Shares in the Azure Storage Account which will also be used to host the backend functions and frontend as a static web page. Finally, we’ll make a CI/CD pipeline to deploy our app.
Using WebSockets In C#
In this code snippet, we will learn how to use WebSockets in C#. WebSockets allow you to establish a bi-directional(full-duplex) communication channel over HTTP between two devices. This type of connection is long-lived and suitable for real-time data such as video streams, commands or inputs for a multiplayer video game.
Azure Function Durable Functions
In this code snippet, we will look at Durable Azure Functions. Azure functions are stateless by default. But we can add state by using the Durable Functions extension. This allows you to implement common patterns such as Function chaining, Fan-out/fan-in, Async HTTP APIs, Monitoring, Human interaction, Aggregator.









