Photomechanics API
NetworkDataTransport Class Reference

Network data transport. Intended for use with our ESP8266 equipped turntables. More...

Inheritance diagram for NetworkDataTransport:
[legend]

Public Member Functions

 NetworkDataTransport (TcpClient tcpClient, ILogger logger)
 Constructs network data transport on top of provided TcpClient.
 
ValueTask DisposeAsync ()
 
async ValueTask Write (String data)
 Send string to turntable. More...
 
ValueTask Write (String data)
 Send string to turntable. More...
 

Properties

ILogger Logger [get]
 
IObservable< Char > CharReceived [get]
 Occurs when char is received from turntable. More...
 
String ConnectionInfo [get]
 ITurntableApi.ConnectionInfo. More...
 
- Properties inherited from IDataTransport
IObservable< Char > CharReceived [get]
 Occurs when char is received from turntable. More...
 
String ConnectionInfo [get]
 ITurntableApi.ConnectionInfo. More...
 

Detailed Description

Network data transport. Intended for use with our ESP8266 equipped turntables.

Member Function Documentation

◆ Write()

async ValueTask NetworkDataTransport.Write ( String  data)

Send string to turntable.

Implements IDataTransport.

Property Documentation

◆ CharReceived

IObservable<Char> NetworkDataTransport.CharReceived
get

Occurs when char is received from turntable.

Implements IDataTransport.

◆ ConnectionInfo

String NetworkDataTransport.ConnectionInfo
get