Beispiel #1
0
 public CommPort(string portName, int baudRate, OnReceiveCallback onReceive, OnOpenCallback onOpen)
 {
     this.onReceive    = onReceive;
     this.onOpen       = onOpen;
     this.commSettings = new CommLineSettings()
     {
         port         = portName,
         baudRate     = baudRate,
         rxTerminator = ASCII.LF,
         txTerminator = new ASCII[1] {
             ASCII.LF
         },
     };
     this.Setup(this.commSettings);
 }
 public static extern void WebSocketSetOnOpen(OnOpenCallback callback);
 internal static extern void SetOnOpenDelegate(OnOpenCallback callback);
 internal static extern void _SetOnOpen(OnOpenCallback callback);
Beispiel #5
0
 [DllImport("__Internal")] public static extern int WebSocketSetOnOpen(OnOpenCallback Callback);