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.
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.
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.
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.
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.
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.
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.
In this code snippet, we will learn about streams in C#. Streams provide a generic view of a sequence of bytes. The Stream class is an abstract class that defines all the necessary things for any inheriting stream to implement such as Read(), Write(), Seek() and Flush() methods.
In this code snippet, I’ll show you how to connect to and query an SQL database with C# in .NET. I’ll also show you how to perform the queries properly by using “parameterized queries” to avoid SQL injection vulnerabilities.
In this post, I will show you how to properly use the C# Http Client in Azure Functions using dependency injection(the same concept applies to other C# .NET technologies). I’ll also show you how to add request caching to improve performance.
In this post, we’ll talk about bindings and triggers in Azure Functions. In my other post “Getting Started With C# Azure Functions” where I show how to create a basic function I added an Http Trigger when creating the project. Here I’ll show you how to add additional triggers and bindings to your function.