Reason for this document:
The user can select the async option and manage it from the actual menu in the G-SDK.
How to use & detailed explanation :
sample in the g-SDK
>>>>> Select a menu: 3
***** Async connections: 0
[]
===== Async Menu =====
(1) Add async connections
(2) Delete async connections
(3) Refresh the connection list
(q) Return to Main Menu
>>>>> Select a menu: 1
>> Enter the device ID (Press just ENTER if no more device): 540092578
>> Enter the IP address of the device: 192.168.0.120
>> Enter the port of the device (default: 51211):
>> Use SSL y/n (default: n): y
>> Enter the device ID (Press just ENTER if no more device): 939504224
>> Enter the IP address of the device: 192.168.0.110
>> Enter the port of the device (default: 51211):
>> Use SSL y/n (default: n):
>> Enter the device ID (Press just ENTER if no more device):
Adding asynchronous connections for 2 devices...
***** Async connections: 2
[ { deviceid: 540092578,
connectionmode: 0,
ipaddr: '192.168.0.120',
port: 51211,
status: 0,
autoreconnect: true,
usessl: true },
{ deviceid: 939504224,
connectionmode: 0,
ipaddr: '192.168.0.110',
port: 51211,
status: 0,
autoreconnect: true,
usessl: false } ]
[TCP Connected]: { deviceid: 939504224, status: 1, timestamp: 1584826789 }
[TLS Connected]: { deviceid: 540092578, status: 2, timestamp: 1584826791 }
please refer to this document.
https://biostar-dev.github.io/g-sdk/node/connect/