connect

suspend fun connect(ipAddress: String, port: Int)

Attempts to establish a connection to the PGN daemon.

This function must be called prior to attempting any reads or writes.

Parameters

ipAddress

IP address of the Pico device running PGN which we want to connect to.

port

Port on which PGN is running. This is usually port 8080.