Is there any packages for a Socket.IO client for MAUI or Xamarin? I tried using EngineIoClientDotNet it is not maintained anymore and it is not working. And it seems like most of the socket.io clients for MAUI or Xamarin are deprecated.
Is there any socket.io client packages for MAUI or Xamarin?
Related
I have Windows UWP foreground app running on my raspberry (windows 10 iot core). I want to use Iot.Device.Bindings nuget package to capture data from various sensors (e.g. bme680). But looks like this package is unsupported on UWP:
NU1202: Package Iot.Device.Bindings 1.2.0 is not compatible with uap10.0.17763 (UAP,Version=v10.0.17763). Package Iot.Device.Bindings 1.2.0 supports:
- net5.0 (.NETCoreApp,Version=v5.0)
I tried to create backroung job for iot core, but same error.
Can someone suggest approch how to achive that?
Thanks in advance!
Yes, the Iot.Device.Bindings package does not support UWP on Windows IoT Core but works for .net core. Since the library uses APIs in namespace System.Decive.. For UWP app, you need to use APIs in namespace Windows.Device.. At the moment, I can not find a package which is implemented for various sensors. Here are two suggestion for that:
Create a .net core app which uses the Iot.Device.Bindings nuget package, and build a channel to send the data from .net core app to your UWP app, such as tcp, or web API.
Imeplement the library for UWP by referring the source code.
I have a Xamarin.Forms shared project created for Android 7.0 and UWP.
What I am attempting to do is receive information from an IoT hub on Azure.
I have previously been able to receive telemetry to a console application by following this tutorial
https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-csharp-csharp-getstarted
I was using Microsoft.ServiceBus.Messaging library
Is this not supported on Android? and if so, is there a way to receive messages on an android device from an IoT hub using Xamarin?
You might want to use the newer library for event Hub monitoring: https://github.com/azure/azure-event-hubs-dotnet
This new lib is .Net Standard 1.3 compatible and should work on Xamarin.Android.
We need to update the Azure IoT Hub docs to point to this new lib instead of the older Microsoft.ServiceBus.Messaging one. I'll make sure it's added to our backlog.
Is it possible to use GRPC C# library with a Windows Phone App? When I try to install GRPC through NuGet I receive the following error:
Error Could not install package 'Grpc.Core 1.0.0'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Has anyone had any luck installing GRPC C# library for a windows phone app?
As of now, Windows Phone Apps are not supported by gRPC C#. Technically, supporting them would be possible but we are not sure it's worth the work at this point - we have different priorities (User experience, performance and supporting other platforms).
Here's a github issue that tracks the discussion: https://github.com/grpc/grpc/issues/7859
None of the Sockets APIs (System.Net.Sockets, System.Net.WebSockets, Windows.Networking.Sockets namespaces) exist in a PCL targetting .NET 4.5.1, Windows 8.1 and Windows Phone 8.1. What are my networking options to access a input and output Stream?
There aren't any socket API in common between the full .Net 4.5.1 Framework (using System.Net) and the Windows Runtime (using Windows.Networking). Since a PCL allows the intersection of the APIs for all of the PCL's targets this means there are no Socket API available directly in that PCL. You'll have to open the socket in the platform specific code.
All of these targets do support .Net Streams, so once you've opened the socket in platform specific code you can pass the stream for the socket into the PCL for handling.
You can use Inversion of Control to let the PCL request the stream from the host when necessary. The PCL can define an interface (e.g. IPlatformSpecificCode) which the host can implement. When the PCL wants to open the network connection it can call IPlatformSpecificCode.OpenPlatformSpecificSocket(address,port) and the host can open a System.Net.Sockets.Socket or a Windows.Networking.Sockets.StreamSocket and return a .Net stream for the PCL to use.
I would like to know how well ServiceStack supports client consumption and deserialization into objects on Xamarin for both iOS and Android as the official ServiceStack website does not mention this.
ServiceStack's released PCL client Libraries support in v4.06 which include support for both iOS and Android Xamarin platforms.
The Hello repository shows examples of using the libraries in all supported client platforms.
The PCL client libraries are maintained in the ServiceStack.Client NuGet package, e.g:
PM> Install-Package ServiceStack.Client