19 строки
403 B
Plaintext
19 строки
403 B
Plaintext
namespace modules {
|
|
/**
|
|
* Data transfer over TCP/IP and TLS stream sockets.
|
|
**/
|
|
//% fixedInstances blockGap=8
|
|
export class TcpClient extends jacdac.Client {
|
|
|
|
|
|
constructor(role: string) {
|
|
super(jacdac.SRV_TCP, role);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
//% fixedInstance whenUsed block="tcp 1"
|
|
export const tcp1 = new TcpClient("tcp1");
|
|
} |