Bidirectional communication with MQTT in .NET MAUI

As mobile app developer, we constantly have the need to exchange information between the app and the backend. In most cases, a RESTful-API is the solution. But what if a constant flow of data exchange in both directions is required? In this post we will take a look at MQTT and how to create your own simple chat app in .NET MAUI.

Martin Luong
Martin Luong

With over 7 years of experience in the development of cross-platform apps with Xamarin and .NET MAUI, Martin is one of the old hands at Cayas Software. Customers from the agricultural, logistics and healthcare industries appreciate his calm manner and analytical approach to the implementation of their Xamarin and .NET MAUI projects. He shares some of his daily work with Xamarin and .NET MAUI in his articles.

Related articles
Using voice commands in .NET MAUI
Using voice commands in .NET MAUI

This post is a continuation of the Hackathon topic post, where the technical implementation of voice commands in .NET MAUI is revealed, as well as the challenges the development team faced and how they successfully solved them.

7 steps to migrate from Xamarin.Forms to .NET MAUI
7 steps to migrate from Xamarin.Forms to .NET MAUI

With the end of support for Xamarin approaching in May 2024, developers are busy migrating existing Xamarin.Forms projects to .NET MAUI as its successor. So are we, of course. In this article, I'll show 7 steps we've always had to take during the transition to make your upgrade .NET MAUI easier.

Responsive Layouts in .NET MAUI: Master device orientation
Responsive Layouts in .NET MAUI: Master device orientation

.NET MAUI enable us to write platform and device-factor independent apps, which makes it neccessary to adapt dynamically to the users screen size and form. In this blog post you learn how to make your XAML layouts adapt to different device orientations, using a similar syntax to OnIdiom and OnPlatform that you might already be familiar with.