У Arduino вообще нет проблем. Я отправил ему множество команд с простым кодом на C# и Python через VS и PyCharm
Так что с ним все в порядке.

Есть код:
Код: Выделить всё
// ViewController.cs
using System;
using AppKit;
using Foundation;
using System.Net.Sockets;
using System.Text;
using System.Threading;
namespace Control
{
public partial class ViewController : NSViewController
{
public ViewController (IntPtr handle) : base (handle)
{
}
public override void ViewDidAppear()
{
base.ViewDidAppear();
this.View.Window.BackgroundColor = NSColor.Black;
this.View.Window.Title = "Control";
}
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
// Do any additional setup after loading the view.
}
public void GetRgb(ref int red, ref int green, ref int blue)
{
colorPicker.Color.GetRgba(out nfloat r, out nfloat g, out nfloat b, out nfloat a);
red = (int)(r * 255);
green = (int)(g * 255);
blue = (int)(b * 255);
}
public void SendData(ref long dateToSend, int r, int g, int b)
{
dateToSend = (dateToSend
Подробнее здесь: [url]https://stackoverflow.com/questions/79020188/how-to-give-permission-to-connect-to-unit-in-private-network-cocoa-app[/url]
Мобильная версия