Libertas OS API Documentation
    Preparing search index...

    Enumeration LibertasNetEvent

    The event type used to set up Libertas_SetOnNet call.

    The value will also be passed to the LibertasNetCallback callback function.

    The network I/O is sent to the Thing-App task asynchronously. Read remarks on Libertas_SetOnNet for more information.

    Index

    Enumeration Members

    Data: 0

    Callback will be called when the socket read some data from peer.

    HttpResponse: 0

    Callback will be called when a HTTP response response is received from the HTTP socket.

    Drain: 1

    "Drain" is emitted when the write buffer becomes empty. Can be used to throttle uploads.

    Error: 2

    Callback is called when an error happens on the socket.

    ReadTimeout: 3

    Callback is called when a read timeout is raised.

    WriteTimeout: 4

    Callback is called when a write timeout is raised.

    Lookup: 5

    Set DNS resolution callback. Callback is called when DNS resolved successfully.

    Connected: 6

    Callback is called when the socket is connected. Note that "Connected" and "Ready" are different. When a TLS socket is "Connected" it may not be "Ready".

    Ready: 7

    The socket is ready to be written. Note that "Connected" and "Ready" are different. When a TLS socket is "Connected" it may not be "Ready".

    Closed: 8

    Callback will be called when the socket is closed. The socket is automatically closed on error or as a result of Libertas_NetClose call. Note that Libertas encourages reusing of the same socket object by passing a closed socket to a Libertas_NetConnect call.

    Destroyed: 9

    Callback will be called when the socket is destroyed as a result of Libertas_NetDestroy call. A destroyed socket can not be reused.