Skip to main content

Class Encoders

Encapsulate the various message encoder and extract methods.

Assembly: Meadow.F7.dll​
View Source​
Declaration
public static class Encoders

Methods​

CalculateSpiBufferSize(uint)​

Calculate the amount of memory that should be allocated for the receive buffer.

SPI reception on the ESP32 should be on a 32-bit boundary and also a multiple of 4 bytes long with a minimum length of 8 bytes (See the article linked below).

https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_slave.html#restrictions-and-known-issues

View Source​
Declaration
public static uint CalculateSpiBufferSize(uint requestedSize)
Returns​

System.UInt32: Size of the buffer that should be used.

Parameters​
TypeNameDescription
System.UInt32requestedSizeRequested size.

ExtractUInt16(byte[], int)​

Take two bytes from the buffer and encode them as a 16-bit integer. Note that the data should be encoded as LSB first.

View Source​
Declaration
public static ushort ExtractUInt16(byte[] buffer, int offset = 0)
Returns​

System.UInt16

Parameters​
TypeNameDescription
System.Byte[]bufferBuffer holding the value.
System.Int32offsetOffset into the buffer for the LSB.

EncodeUInt16(ushort, byte[], int)​

Encode a 16-bit integer as two bytes in the buffer. The data is encoded LSB first.

View Source​
Declaration
public static void EncodeUInt16(ushort value, byte[] buffer, int offset = 0)
Parameters​
TypeNameDescription
System.UInt16valueValue to encode.
System.Byte[]bufferBuffer to store the value.
System.Int32offsetOffset into the buffer for the first byte to store.

ExtractUInt32(byte[], int)​

Take four bytes from the buffer and encode them as a 32-bit unsigned integer. Note that the data should be encoded as LSB first.

View Source​
Declaration
public static uint ExtractUInt32(byte[] buffer, int offset = 0)
Returns​

System.UInt32

Parameters​
TypeNameDescription
System.Byte[]bufferBuffer holding the 32-bit value to decode.
System.Int32offsetOffset of the 32-bit in the buffer.

EncodeUInt32(uint, byte[], int)​

Encode a 32-bit unsigned integer as four bytes in the buffer. The data is encoded LSB first.

View Source​
Declaration
public static void EncodeUInt32(uint value, byte[] buffer, int offset = 0)
Parameters​
TypeNameDescription
System.UInt32valueValue to encode.
System.Byte[]bufferBuffer to store the value.
System.Int32offsetOffset into the buffer for the first byte to store.

ExtractInt32(byte[], int)​

Take four bytes from the buffer and encode them as a 32-bit integer. Note that the data should be encoded as LSB first.

View Source​
Declaration
public static int ExtractInt32(byte[] buffer, int offset = 0)
Returns​

System.Int32

Parameters​
TypeNameDescription
System.Byte[]bufferBuffer holding the 32-bit value to decode.
System.Int32offsetOffset of the 32-bit in the buffer.

EncodeInt32(int, byte[], int)​

Encode a 32-bit integer as four bytes in the buffer. The data is encoded LSB first.

View Source​
Declaration
public static void EncodeInt32(int value, byte[] buffer, int offset = 0)
Parameters​
TypeNameDescription
System.Int32valueValue to encode.
System.Byte[]bufferBuffer to store the value.
System.Int32offsetOffset into the buffer for the first byte to store.

EncodeString(string, byte[], int)​

Encode a string into the buffer as a stream of bytes.

View Source​
Declaration
public static void EncodeString(string str, byte[] buffer, int offset = 0)
Parameters​
TypeNameDescription
System.StringstrString to encode.
System.Byte[]bufferBuffer to hold the characters.
System.Int32offsetOffset into the buffer for the first character.

ExtractString(byte[], int)​

Extract a string from the buffer.

View Source​
Declaration
public static string ExtractString(byte[] buffer, int offset = 0)
Returns​

System.String: The string.

Parameters​
TypeNameDescription
System.Byte[]bufferBuffer holding the data to be decoded.
System.Int32offsetOffset into the buffer of the string.

EncodeSystemConfiguration(SystemConfiguration)​

Encode a SystemConfiguration object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSystemConfiguration(SystemConfiguration systemConfiguration)
Returns​

System.Byte[]: Byte array containing the encoded SystemConfiguration object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SystemConfigurationsystemConfigurationSystemConfiguration object to be encoded.

ExtractSystemConfiguration(byte[], int)​

Extract a SystemConfiguration object from a byte array.

View Source​
Declaration
public static SystemConfiguration ExtractSystemConfiguration(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SystemConfiguration: SystemConfiguration object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSystemConfigurationBufferSize(SystemConfiguration)​

Calculate the amount of memory required to hold the given instance of the SystemConfiguration object.

View Source​
Declaration
public static int EncodedSystemConfigurationBufferSize(SystemConfiguration systemConfiguration)
Returns​

System.Int32: Number of bytes required to hold the encoded SystemConfiguration object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SystemConfigurationsystemConfigurationSystemConfiguration object to be encoded.

EncodeConfigurationValue(ConfigurationValue)​

Encode a ConfigurationValue object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeConfigurationValue(ConfigurationValue configurationValue)
Returns​

System.Byte[]: Byte array containing the encoded ConfigurationValue object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConfigurationValueconfigurationValueConfigurationValue object to be encoded.

ExtractConfigurationValue(byte[], int)​

Extract a ConfigurationValue object from a byte array.

View Source​
Declaration
public static ConfigurationValue ExtractConfigurationValue(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ConfigurationValue: ConfigurationValue object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedConfigurationValueBufferSize(ConfigurationValue)​

Calculate the amount of memory required to hold the given instance of the ConfigurationValue object.

View Source​
Declaration
public static int EncodedConfigurationValueBufferSize(ConfigurationValue configurationValue)
Returns​

System.Int32: Number of bytes required to hold the encoded ConfigurationValue object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConfigurationValueconfigurationValueConfigurationValue object to be encoded.

EncodeErrorEvent(ErrorEvent)​

Encode a ErrorEvent object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeErrorEvent(ErrorEvent errorEvent)
Returns​

System.Byte[]: Byte array containing the encoded ErrorEvent object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ErrorEventerrorEventErrorEvent object to be encoded.

ExtractErrorEvent(byte[], int)​

Extract a ErrorEvent object from a byte array.

View Source​
Declaration
public static ErrorEvent ExtractErrorEvent(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ErrorEvent: ErrorEvent object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedErrorEventBufferSize(ErrorEvent)​

Calculate the amount of memory required to hold the given instance of the ErrorEvent object.

View Source​
Declaration
public static int EncodedErrorEventBufferSize(ErrorEvent errorEvent)
Returns​

System.Int32: Number of bytes required to hold the encoded ErrorEvent object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ErrorEventerrorEventErrorEvent object to be encoded.

EncodeAccessPointInformation(AccessPointInformation)​

Encode a AccessPointInformation object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAccessPointInformation(AccessPointInformation accessPointInformation)
Returns​

System.Byte[]: Byte array containing the encoded AccessPointInformation object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointInformationaccessPointInformationAccessPointInformation object to be encoded.

ExtractAccessPointInformation(byte[], int)​

Extract a AccessPointInformation object from a byte array.

View Source​
Declaration
public static AccessPointInformation ExtractAccessPointInformation(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AccessPointInformation: AccessPointInformation object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAccessPointInformationBufferSize(AccessPointInformation)​

Calculate the amount of memory required to hold the given instance of the AccessPointInformation object.

View Source​
Declaration
public static int EncodedAccessPointInformationBufferSize(AccessPointInformation accessPointInformation)
Returns​

System.Int32: Number of bytes required to hold the encoded AccessPointInformation object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointInformationaccessPointInformationAccessPointInformation object to be encoded.

EncodeDisconnectFromAccessPointRequest(DisconnectFromAccessPointRequest)​

Encode a DisconnectFromAccessPointRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeDisconnectFromAccessPointRequest(DisconnectFromAccessPointRequest disconnectFromAccessPointRequest)
Returns​

System.Byte[]: Byte array containing the encoded DisconnectFromAccessPointRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequestdisconnectFromAccessPointRequestDisconnectFromAccessPointRequest object to be encoded.

ExtractDisconnectFromAccessPointRequest(byte[], int)​

Extract a DisconnectFromAccessPointRequest object from a byte array.

View Source​
Declaration
public static DisconnectFromAccessPointRequest ExtractDisconnectFromAccessPointRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequest: DisconnectFromAccessPointRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedDisconnectFromAccessPointRequestBufferSize(DisconnectFromAccessPointRequest)​

Calculate the amount of memory required to hold the given instance of the DisconnectFromAccessPointRequest object.

View Source​
Declaration
public static int EncodedDisconnectFromAccessPointRequestBufferSize(DisconnectFromAccessPointRequest disconnectFromAccessPointRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded DisconnectFromAccessPointRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequestdisconnectFromAccessPointRequestDisconnectFromAccessPointRequest object to be encoded.

EncodeConnectEventData(ConnectEventData)​

Encode a ConnectEventData object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeConnectEventData(ConnectEventData connectEventData)
Returns​

System.Byte[]: Byte array containing the encoded ConnectEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConnectEventDataconnectEventDataConnectEventData object to be encoded.

ExtractConnectEventData(byte[], int)​

Extract a ConnectEventData object from a byte array.

View Source​
Declaration
public static ConnectEventData ExtractConnectEventData(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ConnectEventData: ConnectEventData object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedConnectEventDataBufferSize(ConnectEventData)​

Calculate the amount of memory required to hold the given instance of the ConnectEventData object.

View Source​
Declaration
public static int EncodedConnectEventDataBufferSize(ConnectEventData connectEventData)
Returns​

System.Int32: Number of bytes required to hold the encoded ConnectEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConnectEventDataconnectEventDataConnectEventData object to be encoded.

EncodeNodeConnectionChangeEventData(NodeConnectionChangeEventData)​

Encode a NodeConnectionChangeEventData object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeNodeConnectionChangeEventData(NodeConnectionChangeEventData nodeConnectionChangeEventData)
Returns​

System.Byte[]: Byte array containing the encoded NodeConnectionChangeEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventDatanodeConnectionChangeEventDataNodeConnectionChangeEventData object to be encoded.

ExtractNodeConnectionChangeEventData(byte[], int)​

Extract a NodeConnectionChangeEventData object from a byte array.

View Source​
Declaration
public static NodeConnectionChangeEventData ExtractNodeConnectionChangeEventData(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventData: NodeConnectionChangeEventData object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedNodeConnectionChangeEventDataBufferSize(NodeConnectionChangeEventData)​

Calculate the amount of memory required to hold the given instance of the NodeConnectionChangeEventData object.

View Source​
Declaration
public static int EncodedNodeConnectionChangeEventDataBufferSize(NodeConnectionChangeEventData nodeConnectionChangeEventData)
Returns​

System.Int32: Number of bytes required to hold the encoded NodeConnectionChangeEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventDatanodeConnectionChangeEventDataNodeConnectionChangeEventData object to be encoded.

EncodeDisconnectEventData(DisconnectEventData)​

Encode a DisconnectEventData object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeDisconnectEventData(DisconnectEventData disconnectEventData)
Returns​

System.Byte[]: Byte array containing the encoded DisconnectEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.DisconnectEventDatadisconnectEventDataDisconnectEventData object to be encoded.

ExtractDisconnectEventData(byte[], int)​

Extract a DisconnectEventData object from a byte array.

View Source​
Declaration
public static DisconnectEventData ExtractDisconnectEventData(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.DisconnectEventData: DisconnectEventData object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedDisconnectEventDataBufferSize(DisconnectEventData)​

Calculate the amount of memory required to hold the given instance of the DisconnectEventData object.

View Source​
Declaration
public static int EncodedDisconnectEventDataBufferSize(DisconnectEventData disconnectEventData)
Returns​

System.Int32: Number of bytes required to hold the encoded DisconnectEventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.DisconnectEventDatadisconnectEventDataDisconnectEventData object to be encoded.

EncodeAccessPoint(AccessPoint)​

Encode a AccessPoint object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAccessPoint(AccessPoint accessPoint)
Returns​

System.Byte[]: Byte array containing the encoded AccessPoint object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointaccessPointAccessPoint object to be encoded.

ExtractAccessPoint(byte[], int)​

Extract a AccessPoint object from a byte array.

View Source​
Declaration
public static AccessPoint ExtractAccessPoint(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AccessPoint: AccessPoint object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAccessPointBufferSize(AccessPoint)​

Calculate the amount of memory required to hold the given instance of the AccessPoint object.

View Source​
Declaration
public static int EncodedAccessPointBufferSize(AccessPoint accessPoint)
Returns​

System.Int32: Number of bytes required to hold the encoded AccessPoint object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointaccessPointAccessPoint object to be encoded.

EncodeAccessPointList(AccessPointList)​

Encode a AccessPointList object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAccessPointList(AccessPointList accessPointList)
Returns​

System.Byte[]: Byte array containing the encoded AccessPointList object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointListaccessPointListAccessPointList object to be encoded.

ExtractAccessPointList(byte[], int)​

Extract a AccessPointList object from a byte array.

View Source​
Declaration
public static AccessPointList ExtractAccessPointList(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AccessPointList: AccessPointList object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAccessPointListBufferSize(AccessPointList)​

Calculate the amount of memory required to hold the given instance of the AccessPointList object.

View Source​
Declaration
public static int EncodedAccessPointListBufferSize(AccessPointList accessPointList)
Returns​

System.Int32: Number of bytes required to hold the encoded AccessPointList object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AccessPointListaccessPointListAccessPointList object to be encoded.

EncodeSockAddr(SockAddr)​

Encode a SockAddr object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSockAddr(SockAddr sockAddr)
Returns​

System.Byte[]: Byte array containing the encoded SockAddr object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SockAddrsockAddrSockAddr object to be encoded.

ExtractSockAddr(byte[], int)​

Extract a SockAddr object from a byte array.

View Source​
Declaration
public static SockAddr ExtractSockAddr(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SockAddr: SockAddr object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSockAddrBufferSize(SockAddr)​

Calculate the amount of memory required to hold the given instance of the SockAddr object.

View Source​
Declaration
public static int EncodedSockAddrBufferSize(SockAddr sockAddr)
Returns​

System.Int32: Number of bytes required to hold the encoded SockAddr object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SockAddrsockAddrSockAddr object to be encoded.

EncodeAddrInfo(AddrInfo)​

Encode a AddrInfo object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAddrInfo(AddrInfo addrInfo)
Returns​

System.Byte[]: Byte array containing the encoded AddrInfo object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AddrInfoaddrInfoAddrInfo object to be encoded.

ExtractAddrInfo(byte[], int)​

Extract a AddrInfo object from a byte array.

View Source​
Declaration
public static AddrInfo ExtractAddrInfo(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AddrInfo: AddrInfo object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAddrInfoBufferSize(AddrInfo)​

Calculate the amount of memory required to hold the given instance of the AddrInfo object.

View Source​
Declaration
public static int EncodedAddrInfoBufferSize(AddrInfo addrInfo)
Returns​

System.Int32: Number of bytes required to hold the encoded AddrInfo object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AddrInfoaddrInfoAddrInfo object to be encoded.

EncodeGetAddrInfoRequest(GetAddrInfoRequest)​

Encode a GetAddrInfoRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetAddrInfoRequest(GetAddrInfoRequest getAddrInfoRequest)
Returns​

System.Byte[]: Byte array containing the encoded GetAddrInfoRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequestgetAddrInfoRequestGetAddrInfoRequest object to be encoded.

ExtractGetAddrInfoRequest(byte[], int)​

Extract a GetAddrInfoRequest object from a byte array.

View Source​
Declaration
public static GetAddrInfoRequest ExtractGetAddrInfoRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequest: GetAddrInfoRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetAddrInfoRequestBufferSize(GetAddrInfoRequest)​

Calculate the amount of memory required to hold the given instance of the GetAddrInfoRequest object.

View Source​
Declaration
public static int EncodedGetAddrInfoRequestBufferSize(GetAddrInfoRequest getAddrInfoRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded GetAddrInfoRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequestgetAddrInfoRequestGetAddrInfoRequest object to be encoded.

EncodeGetAddrInfoResponse(GetAddrInfoResponse)​

Encode a GetAddrInfoResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetAddrInfoResponse(GetAddrInfoResponse getAddrInfoResponse)
Returns​

System.Byte[]: Byte array containing the encoded GetAddrInfoResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponsegetAddrInfoResponseGetAddrInfoResponse object to be encoded.

ExtractGetAddrInfoResponse(byte[], int)​

Extract a GetAddrInfoResponse object from a byte array.

View Source​
Declaration
public static GetAddrInfoResponse ExtractGetAddrInfoResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponse: GetAddrInfoResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetAddrInfoResponseBufferSize(GetAddrInfoResponse)​

Calculate the amount of memory required to hold the given instance of the GetAddrInfoResponse object.

View Source​
Declaration
public static int EncodedGetAddrInfoResponseBufferSize(GetAddrInfoResponse getAddrInfoResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded GetAddrInfoResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponsegetAddrInfoResponseGetAddrInfoResponse object to be encoded.

EncodeSocketRequest(SocketRequest)​

Encode a SocketRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSocketRequest(SocketRequest socketRequest)
Returns​

System.Byte[]: Byte array containing the encoded SocketRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SocketRequestsocketRequestSocketRequest object to be encoded.

ExtractSocketRequest(byte[], int)​

Extract a SocketRequest object from a byte array.

View Source​
Declaration
public static SocketRequest ExtractSocketRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SocketRequest: SocketRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSocketRequestBufferSize(SocketRequest)​

Calculate the amount of memory required to hold the given instance of the SocketRequest object.

View Source​
Declaration
public static int EncodedSocketRequestBufferSize(SocketRequest socketRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded SocketRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SocketRequestsocketRequestSocketRequest object to be encoded.

EncodeIntegerResponse(IntegerResponse)​

Encode a IntegerResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeIntegerResponse(IntegerResponse integerResponse)
Returns​

System.Byte[]: Byte array containing the encoded IntegerResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IntegerResponseintegerResponseIntegerResponse object to be encoded.

ExtractIntegerResponse(byte[], int)​

Extract a IntegerResponse object from a byte array.

View Source​
Declaration
public static IntegerResponse ExtractIntegerResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.IntegerResponse: IntegerResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedIntegerResponseBufferSize(IntegerResponse)​

Calculate the amount of memory required to hold the given instance of the IntegerResponse object.

View Source​
Declaration
public static int EncodedIntegerResponseBufferSize(IntegerResponse integerResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded IntegerResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IntegerResponseintegerResponseIntegerResponse object to be encoded.

EncodeIntegerAndErrnoResponse(IntegerAndErrnoResponse)​

Encode a IntegerAndErrnoResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeIntegerAndErrnoResponse(IntegerAndErrnoResponse integerAndErrnoResponse)
Returns​

System.Byte[]: Byte array containing the encoded IntegerAndErrnoResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponseintegerAndErrnoResponseIntegerAndErrnoResponse object to be encoded.

ExtractIntegerAndErrnoResponse(byte[], int)​

Extract a IntegerAndErrnoResponse object from a byte array.

View Source​
Declaration
public static IntegerAndErrnoResponse ExtractIntegerAndErrnoResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponse: IntegerAndErrnoResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedIntegerAndErrnoResponseBufferSize(IntegerAndErrnoResponse)​

Calculate the amount of memory required to hold the given instance of the IntegerAndErrnoResponse object.

View Source​
Declaration
public static int EncodedIntegerAndErrnoResponseBufferSize(IntegerAndErrnoResponse integerAndErrnoResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded IntegerAndErrnoResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponseintegerAndErrnoResponseIntegerAndErrnoResponse object to be encoded.

EncodeConnectRequest(ConnectRequest)​

Encode a ConnectRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeConnectRequest(ConnectRequest connectRequest)
Returns​

System.Byte[]: Byte array containing the encoded ConnectRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConnectRequestconnectRequestConnectRequest object to be encoded.

ExtractConnectRequest(byte[], int)​

Extract a ConnectRequest object from a byte array.

View Source​
Declaration
public static ConnectRequest ExtractConnectRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ConnectRequest: ConnectRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedConnectRequestBufferSize(ConnectRequest)​

Calculate the amount of memory required to hold the given instance of the ConnectRequest object.

View Source​
Declaration
public static int EncodedConnectRequestBufferSize(ConnectRequest connectRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded ConnectRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ConnectRequestconnectRequestConnectRequest object to be encoded.

EncodeFreeAddrInfoRequest(FreeAddrInfoRequest)​

Encode a FreeAddrInfoRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeFreeAddrInfoRequest(FreeAddrInfoRequest freeAddrInfoRequest)
Returns​

System.Byte[]: Byte array containing the encoded FreeAddrInfoRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequestfreeAddrInfoRequestFreeAddrInfoRequest object to be encoded.

ExtractFreeAddrInfoRequest(byte[], int)​

Extract a FreeAddrInfoRequest object from a byte array.

View Source​
Declaration
public static FreeAddrInfoRequest ExtractFreeAddrInfoRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequest: FreeAddrInfoRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedFreeAddrInfoRequestBufferSize(FreeAddrInfoRequest)​

Calculate the amount of memory required to hold the given instance of the FreeAddrInfoRequest object.

View Source​
Declaration
public static int EncodedFreeAddrInfoRequestBufferSize(FreeAddrInfoRequest freeAddrInfoRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded FreeAddrInfoRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequestfreeAddrInfoRequestFreeAddrInfoRequest object to be encoded.

EncodeTimeVal(TimeVal)​

Encode a TimeVal object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeTimeVal(TimeVal timeVal)
Returns​

System.Byte[]: Byte array containing the encoded TimeVal object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.TimeValtimeValTimeVal object to be encoded.

ExtractTimeVal(byte[], int)​

Extract a TimeVal object from a byte array.

View Source​
Declaration
public static TimeVal ExtractTimeVal(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.TimeVal: TimeVal object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedTimeValBufferSize(TimeVal)​

Calculate the amount of memory required to hold the given instance of the TimeVal object.

View Source​
Declaration
public static int EncodedTimeValBufferSize(TimeVal timeVal)
Returns​

System.Int32: Number of bytes required to hold the encoded TimeVal object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.TimeValtimeValTimeVal object to be encoded.

EncodeSetSockOptRequest(SetSockOptRequest)​

Encode a SetSockOptRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSetSockOptRequest(SetSockOptRequest setSockOptRequest)
Returns​

System.Byte[]: Byte array containing the encoded SetSockOptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequestsetSockOptRequestSetSockOptRequest object to be encoded.

ExtractSetSockOptRequest(byte[], int)​

Extract a SetSockOptRequest object from a byte array.

View Source​
Declaration
public static SetSockOptRequest ExtractSetSockOptRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequest: SetSockOptRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSetSockOptRequestBufferSize(SetSockOptRequest)​

Calculate the amount of memory required to hold the given instance of the SetSockOptRequest object.

View Source​
Declaration
public static int EncodedSetSockOptRequestBufferSize(SetSockOptRequest setSockOptRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded SetSockOptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequestsetSockOptRequestSetSockOptRequest object to be encoded.

EncodeGetSockOptRequest(GetSockOptRequest)​

Encode a GetSockOptRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetSockOptRequest(GetSockOptRequest getSockOptRequest)
Returns​

System.Byte[]: Byte array containing the encoded GetSockOptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequestgetSockOptRequestGetSockOptRequest object to be encoded.

ExtractGetSockOptRequest(byte[], int)​

Extract a GetSockOptRequest object from a byte array.

View Source​
Declaration
public static GetSockOptRequest ExtractGetSockOptRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequest: GetSockOptRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetSockOptRequestBufferSize(GetSockOptRequest)​

Calculate the amount of memory required to hold the given instance of the GetSockOptRequest object.

View Source​
Declaration
public static int EncodedGetSockOptRequestBufferSize(GetSockOptRequest getSockOptRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded GetSockOptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequestgetSockOptRequestGetSockOptRequest object to be encoded.

EncodeGetSockOptResponse(GetSockOptResponse)​

Encode a GetSockOptResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetSockOptResponse(GetSockOptResponse getSockOptResponse)
Returns​

System.Byte[]: Byte array containing the encoded GetSockOptResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponsegetSockOptResponseGetSockOptResponse object to be encoded.

ExtractGetSockOptResponse(byte[], int)​

Extract a GetSockOptResponse object from a byte array.

View Source​
Declaration
public static GetSockOptResponse ExtractGetSockOptResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponse: GetSockOptResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetSockOptResponseBufferSize(GetSockOptResponse)​

Calculate the amount of memory required to hold the given instance of the GetSockOptResponse object.

View Source​
Declaration
public static int EncodedGetSockOptResponseBufferSize(GetSockOptResponse getSockOptResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded GetSockOptResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponsegetSockOptResponseGetSockOptResponse object to be encoded.

EncodeLinger(Linger)​

Encode a Linger object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeLinger(Linger linger)
Returns​

System.Byte[]: Byte array containing the encoded Linger object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.LingerlingerLinger object to be encoded.

ExtractLinger(byte[], int)​

Extract a Linger object from a byte array.

View Source​
Declaration
public static Linger ExtractLinger(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.Linger: Linger object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedLingerBufferSize(Linger)​

Calculate the amount of memory required to hold the given instance of the Linger object.

View Source​
Declaration
public static int EncodedLingerBufferSize(Linger linger)
Returns​

System.Int32: Number of bytes required to hold the encoded Linger object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.LingerlingerLinger object to be encoded.

EncodeWriteRequest(WriteRequest)​

Encode a WriteRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeWriteRequest(WriteRequest writeRequest)
Returns​

System.Byte[]: Byte array containing the encoded WriteRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.WriteRequestwriteRequestWriteRequest object to be encoded.

ExtractWriteRequest(byte[], int)​

Extract a WriteRequest object from a byte array.

View Source​
Declaration
public static WriteRequest ExtractWriteRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.WriteRequest: WriteRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedWriteRequestBufferSize(WriteRequest)​

Calculate the amount of memory required to hold the given instance of the WriteRequest object.

View Source​
Declaration
public static int EncodedWriteRequestBufferSize(WriteRequest writeRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded WriteRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.WriteRequestwriteRequestWriteRequest object to be encoded.

EncodeReadRequest(ReadRequest)​

Encode a ReadRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeReadRequest(ReadRequest readRequest)
Returns​

System.Byte[]: Byte array containing the encoded ReadRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ReadRequestreadRequestReadRequest object to be encoded.

ExtractReadRequest(byte[], int)​

Extract a ReadRequest object from a byte array.

View Source​
Declaration
public static ReadRequest ExtractReadRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ReadRequest: ReadRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedReadRequestBufferSize(ReadRequest)​

Calculate the amount of memory required to hold the given instance of the ReadRequest object.

View Source​
Declaration
public static int EncodedReadRequestBufferSize(ReadRequest readRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded ReadRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ReadRequestreadRequestReadRequest object to be encoded.

EncodeReadResponse(ReadResponse)​

Encode a ReadResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeReadResponse(ReadResponse readResponse)
Returns​

System.Byte[]: Byte array containing the encoded ReadResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ReadResponsereadResponseReadResponse object to be encoded.

ExtractReadResponse(byte[], int)​

Extract a ReadResponse object from a byte array.

View Source​
Declaration
public static ReadResponse ExtractReadResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ReadResponse: ReadResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedReadResponseBufferSize(ReadResponse)​

Calculate the amount of memory required to hold the given instance of the ReadResponse object.

View Source​
Declaration
public static int EncodedReadResponseBufferSize(ReadResponse readResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded ReadResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ReadResponsereadResponseReadResponse object to be encoded.

EncodeCloseRequest(CloseRequest)​

Encode a CloseRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeCloseRequest(CloseRequest closeRequest)
Returns​

System.Byte[]: Byte array containing the encoded CloseRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.CloseRequestcloseRequestCloseRequest object to be encoded.

ExtractCloseRequest(byte[], int)​

Extract a CloseRequest object from a byte array.

View Source​
Declaration
public static CloseRequest ExtractCloseRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.CloseRequest: CloseRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedCloseRequestBufferSize(CloseRequest)​

Calculate the amount of memory required to hold the given instance of the CloseRequest object.

View Source​
Declaration
public static int EncodedCloseRequestBufferSize(CloseRequest closeRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded CloseRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.CloseRequestcloseRequestCloseRequest object to be encoded.

EncodeGetBatteryChargeLevelResponse(GetBatteryChargeLevelResponse)​

Encode a GetBatteryChargeLevelResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetBatteryChargeLevelResponse(GetBatteryChargeLevelResponse getBatteryChargeLevelResponse)
Returns​

System.Byte[]: Byte array containing the encoded GetBatteryChargeLevelResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponsegetBatteryChargeLevelResponseGetBatteryChargeLevelResponse object to be encoded.

ExtractGetBatteryChargeLevelResponse(byte[], int)​

Extract a GetBatteryChargeLevelResponse object from a byte array.

View Source​
Declaration
public static GetBatteryChargeLevelResponse ExtractGetBatteryChargeLevelResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponse: GetBatteryChargeLevelResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetBatteryChargeLevelResponseBufferSize(GetBatteryChargeLevelResponse)​

Calculate the amount of memory required to hold the given instance of the GetBatteryChargeLevelResponse object.

View Source​
Declaration
public static int EncodedGetBatteryChargeLevelResponseBufferSize(GetBatteryChargeLevelResponse getBatteryChargeLevelResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded GetBatteryChargeLevelResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponsegetBatteryChargeLevelResponseGetBatteryChargeLevelResponse object to be encoded.

EncodeSendRequest(SendRequest)​

Encode a SendRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSendRequest(SendRequest sendRequest)
Returns​

System.Byte[]: Byte array containing the encoded SendRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SendRequestsendRequestSendRequest object to be encoded.

ExtractSendRequest(byte[], int)​

Extract a SendRequest object from a byte array.

View Source​
Declaration
public static SendRequest ExtractSendRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SendRequest: SendRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSendRequestBufferSize(SendRequest)​

Calculate the amount of memory required to hold the given instance of the SendRequest object.

View Source​
Declaration
public static int EncodedSendRequestBufferSize(SendRequest sendRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded SendRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SendRequestsendRequestSendRequest object to be encoded.

EncodeSendToRequest(SendToRequest)​

Encode a SendToRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSendToRequest(SendToRequest sendToRequest)
Returns​

System.Byte[]: Byte array containing the encoded SendToRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SendToRequestsendToRequestSendToRequest object to be encoded.

ExtractSendToRequest(byte[], int)​

Extract a SendToRequest object from a byte array.

View Source​
Declaration
public static SendToRequest ExtractSendToRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SendToRequest: SendToRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSendToRequestBufferSize(SendToRequest)​

Calculate the amount of memory required to hold the given instance of the SendToRequest object.

View Source​
Declaration
public static int EncodedSendToRequestBufferSize(SendToRequest sendToRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded SendToRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SendToRequestsendToRequestSendToRequest object to be encoded.

EncodeRecvFromRequest(RecvFromRequest)​

Encode a RecvFromRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeRecvFromRequest(RecvFromRequest recvFromRequest)
Returns​

System.Byte[]: Byte array containing the encoded RecvFromRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.RecvFromRequestrecvFromRequestRecvFromRequest object to be encoded.

ExtractRecvFromRequest(byte[], int)​

Extract a RecvFromRequest object from a byte array.

View Source​
Declaration
public static RecvFromRequest ExtractRecvFromRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.RecvFromRequest: RecvFromRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedRecvFromRequestBufferSize(RecvFromRequest)​

Calculate the amount of memory required to hold the given instance of the RecvFromRequest object.

View Source​
Declaration
public static int EncodedRecvFromRequestBufferSize(RecvFromRequest recvFromRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded RecvFromRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.RecvFromRequestrecvFromRequestRecvFromRequest object to be encoded.

EncodeRecvFromResponse(RecvFromResponse)​

Encode a RecvFromResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeRecvFromResponse(RecvFromResponse recvFromResponse)
Returns​

System.Byte[]: Byte array containing the encoded RecvFromResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.RecvFromResponserecvFromResponseRecvFromResponse object to be encoded.

ExtractRecvFromResponse(byte[], int)​

Extract a RecvFromResponse object from a byte array.

View Source​
Declaration
public static RecvFromResponse ExtractRecvFromResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.RecvFromResponse: RecvFromResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedRecvFromResponseBufferSize(RecvFromResponse)​

Calculate the amount of memory required to hold the given instance of the RecvFromResponse object.

View Source​
Declaration
public static int EncodedRecvFromResponseBufferSize(RecvFromResponse recvFromResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded RecvFromResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.RecvFromResponserecvFromResponseRecvFromResponse object to be encoded.

EncodePollRequest(PollRequest)​

Encode a PollRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodePollRequest(PollRequest pollRequest)
Returns​

System.Byte[]: Byte array containing the encoded PollRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.PollRequestpollRequestPollRequest object to be encoded.

ExtractPollRequest(byte[], int)​

Extract a PollRequest object from a byte array.

View Source​
Declaration
public static PollRequest ExtractPollRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.PollRequest: PollRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedPollRequestBufferSize(PollRequest)​

Calculate the amount of memory required to hold the given instance of the PollRequest object.

View Source​
Declaration
public static int EncodedPollRequestBufferSize(PollRequest pollRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded PollRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.PollRequestpollRequestPollRequest object to be encoded.

EncodePollResponse(PollResponse)​

Encode a PollResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodePollResponse(PollResponse pollResponse)
Returns​

System.Byte[]: Byte array containing the encoded PollResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.PollResponsepollResponsePollResponse object to be encoded.

ExtractPollResponse(byte[], int)​

Extract a PollResponse object from a byte array.

View Source​
Declaration
public static PollResponse ExtractPollResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.PollResponse: PollResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedPollResponseBufferSize(PollResponse)​

Calculate the amount of memory required to hold the given instance of the PollResponse object.

View Source​
Declaration
public static int EncodedPollResponseBufferSize(PollResponse pollResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded PollResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.PollResponsepollResponsePollResponse object to be encoded.

EncodeInterruptPollResponse(InterruptPollResponse)​

Encode a InterruptPollResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeInterruptPollResponse(InterruptPollResponse interruptPollResponse)
Returns​

System.Byte[]: Byte array containing the encoded InterruptPollResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponseinterruptPollResponseInterruptPollResponse object to be encoded.

ExtractInterruptPollResponse(byte[], int)​

Extract a InterruptPollResponse object from a byte array.

View Source​
Declaration
public static InterruptPollResponse ExtractInterruptPollResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponse: InterruptPollResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedInterruptPollResponseBufferSize(InterruptPollResponse)​

Calculate the amount of memory required to hold the given instance of the InterruptPollResponse object.

View Source​
Declaration
public static int EncodedInterruptPollResponseBufferSize(InterruptPollResponse interruptPollResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded InterruptPollResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponseinterruptPollResponseInterruptPollResponse object to be encoded.

EncodeListenRequest(ListenRequest)​

Encode a ListenRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeListenRequest(ListenRequest listenRequest)
Returns​

System.Byte[]: Byte array containing the encoded ListenRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ListenRequestlistenRequestListenRequest object to be encoded.

ExtractListenRequest(byte[], int)​

Extract a ListenRequest object from a byte array.

View Source​
Declaration
public static ListenRequest ExtractListenRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.ListenRequest: ListenRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedListenRequestBufferSize(ListenRequest)​

Calculate the amount of memory required to hold the given instance of the ListenRequest object.

View Source​
Declaration
public static int EncodedListenRequestBufferSize(ListenRequest listenRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded ListenRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.ListenRequestlistenRequestListenRequest object to be encoded.

EncodeBindRequest(BindRequest)​

Encode a BindRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeBindRequest(BindRequest bindRequest)
Returns​

System.Byte[]: Byte array containing the encoded BindRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BindRequestbindRequestBindRequest object to be encoded.

ExtractBindRequest(byte[], int)​

Extract a BindRequest object from a byte array.

View Source​
Declaration
public static BindRequest ExtractBindRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.BindRequest: BindRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedBindRequestBufferSize(BindRequest)​

Calculate the amount of memory required to hold the given instance of the BindRequest object.

View Source​
Declaration
public static int EncodedBindRequestBufferSize(BindRequest bindRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded BindRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BindRequestbindRequestBindRequest object to be encoded.

EncodeAcceptRequest(AcceptRequest)​

Encode a AcceptRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAcceptRequest(AcceptRequest acceptRequest)
Returns​

System.Byte[]: Byte array containing the encoded AcceptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AcceptRequestacceptRequestAcceptRequest object to be encoded.

ExtractAcceptRequest(byte[], int)​

Extract a AcceptRequest object from a byte array.

View Source​
Declaration
public static AcceptRequest ExtractAcceptRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AcceptRequest: AcceptRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAcceptRequestBufferSize(AcceptRequest)​

Calculate the amount of memory required to hold the given instance of the AcceptRequest object.

View Source​
Declaration
public static int EncodedAcceptRequestBufferSize(AcceptRequest acceptRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded AcceptRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AcceptRequestacceptRequestAcceptRequest object to be encoded.

EncodeAcceptResponse(AcceptResponse)​

Encode a AcceptResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeAcceptResponse(AcceptResponse acceptResponse)
Returns​

System.Byte[]: Byte array containing the encoded AcceptResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AcceptResponseacceptResponseAcceptResponse object to be encoded.

ExtractAcceptResponse(byte[], int)​

Extract a AcceptResponse object from a byte array.

View Source​
Declaration
public static AcceptResponse ExtractAcceptResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.AcceptResponse: AcceptResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedAcceptResponseBufferSize(AcceptResponse)​

Calculate the amount of memory required to hold the given instance of the AcceptResponse object.

View Source​
Declaration
public static int EncodedAcceptResponseBufferSize(AcceptResponse acceptResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded AcceptResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.AcceptResponseacceptResponseAcceptResponse object to be encoded.

EncodeIoctlRequest(IoctlRequest)​

Encode a IoctlRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeIoctlRequest(IoctlRequest ioctlRequest)
Returns​

System.Byte[]: Byte array containing the encoded IoctlRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IoctlRequestioctlRequestIoctlRequest object to be encoded.

ExtractIoctlRequest(byte[], int)​

Extract a IoctlRequest object from a byte array.

View Source​
Declaration
public static IoctlRequest ExtractIoctlRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.IoctlRequest: IoctlRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedIoctlRequestBufferSize(IoctlRequest)​

Calculate the amount of memory required to hold the given instance of the IoctlRequest object.

View Source​
Declaration
public static int EncodedIoctlRequestBufferSize(IoctlRequest ioctlRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded IoctlRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IoctlRequestioctlRequestIoctlRequest object to be encoded.

EncodeIoctlResponse(IoctlResponse)​

Encode a IoctlResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeIoctlResponse(IoctlResponse ioctlResponse)
Returns​

System.Byte[]: Byte array containing the encoded IoctlResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IoctlResponseioctlResponseIoctlResponse object to be encoded.

ExtractIoctlResponse(byte[], int)​

Extract a IoctlResponse object from a byte array.

View Source​
Declaration
public static IoctlResponse ExtractIoctlResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.IoctlResponse: IoctlResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedIoctlResponseBufferSize(IoctlResponse)​

Calculate the amount of memory required to hold the given instance of the IoctlResponse object.

View Source​
Declaration
public static int EncodedIoctlResponseBufferSize(IoctlResponse ioctlResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded IoctlResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.IoctlResponseioctlResponseIoctlResponse object to be encoded.

EncodeGetSockPeerNameRequest(GetSockPeerNameRequest)​

Encode a GetSockPeerNameRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetSockPeerNameRequest(GetSockPeerNameRequest getSockPeerNameRequest)
Returns​

System.Byte[]: Byte array containing the encoded GetSockPeerNameRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequestgetSockPeerNameRequestGetSockPeerNameRequest object to be encoded.

ExtractGetSockPeerNameRequest(byte[], int)​

Extract a GetSockPeerNameRequest object from a byte array.

View Source​
Declaration
public static GetSockPeerNameRequest ExtractGetSockPeerNameRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequest: GetSockPeerNameRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetSockPeerNameRequestBufferSize(GetSockPeerNameRequest)​

Calculate the amount of memory required to hold the given instance of the GetSockPeerNameRequest object.

View Source​
Declaration
public static int EncodedGetSockPeerNameRequestBufferSize(GetSockPeerNameRequest getSockPeerNameRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded GetSockPeerNameRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequestgetSockPeerNameRequestGetSockPeerNameRequest object to be encoded.

EncodeGetSockPeerNameResponse(GetSockPeerNameResponse)​

Encode a GetSockPeerNameResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeGetSockPeerNameResponse(GetSockPeerNameResponse getSockPeerNameResponse)
Returns​

System.Byte[]: Byte array containing the encoded GetSockPeerNameResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponsegetSockPeerNameResponseGetSockPeerNameResponse object to be encoded.

ExtractGetSockPeerNameResponse(byte[], int)​

Extract a GetSockPeerNameResponse object from a byte array.

View Source​
Declaration
public static GetSockPeerNameResponse ExtractGetSockPeerNameResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponse: GetSockPeerNameResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedGetSockPeerNameResponseBufferSize(GetSockPeerNameResponse)​

Calculate the amount of memory required to hold the given instance of the GetSockPeerNameResponse object.

View Source​
Declaration
public static int EncodedGetSockPeerNameResponseBufferSize(GetSockPeerNameResponse getSockPeerNameResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded GetSockPeerNameResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponsegetSockPeerNameResponseGetSockPeerNameResponse object to be encoded.

EncodeEventData(EventData)​

Encode a EventData object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeEventData(EventData eventData)
Returns​

System.Byte[]: Byte array containing the encoded EventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.EventDataeventDataEventData object to be encoded.

ExtractEventData(byte[], int)​

Extract a EventData object from a byte array.

View Source​
Declaration
public static EventData ExtractEventData(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.EventData: EventData object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedEventDataBufferSize(EventData)​

Calculate the amount of memory required to hold the given instance of the EventData object.

View Source​
Declaration
public static int EncodedEventDataBufferSize(EventData eventData)
Returns​

System.Int32: Number of bytes required to hold the encoded EventData object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.EventDataeventDataEventData object to be encoded.

EncodeEventDataPayload(EventDataPayload)​

Encode a EventDataPayload object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeEventDataPayload(EventDataPayload eventDataPayload)
Returns​

System.Byte[]: Byte array containing the encoded EventDataPayload object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.EventDataPayloadeventDataPayloadEventDataPayload object to be encoded.

ExtractEventDataPayload(byte[], int)​

Extract a EventDataPayload object from a byte array.

View Source​
Declaration
public static EventDataPayload ExtractEventDataPayload(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.EventDataPayload: EventDataPayload object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedEventDataPayloadBufferSize(EventDataPayload)​

Calculate the amount of memory required to hold the given instance of the EventDataPayload object.

View Source​
Declaration
public static int EncodedEventDataPayloadBufferSize(EventDataPayload eventDataPayload)
Returns​

System.Int32: Number of bytes required to hold the encoded EventDataPayload object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.EventDataPayloadeventDataPayloadEventDataPayload object to be encoded.

EncodeSetAntennaRequest(SetAntennaRequest)​

Encode a SetAntennaRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeSetAntennaRequest(SetAntennaRequest setAntennaRequest)
Returns​

System.Byte[]: Byte array containing the encoded SetAntennaRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequestsetAntennaRequestSetAntennaRequest object to be encoded.

ExtractSetAntennaRequest(byte[], int)​

Extract a SetAntennaRequest object from a byte array.

View Source​
Declaration
public static SetAntennaRequest ExtractSetAntennaRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequest: SetAntennaRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedSetAntennaRequestBufferSize(SetAntennaRequest)​

Calculate the amount of memory required to hold the given instance of the SetAntennaRequest object.

View Source​
Declaration
public static int EncodedSetAntennaRequestBufferSize(SetAntennaRequest setAntennaRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded SetAntennaRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequestsetAntennaRequestSetAntennaRequest object to be encoded.

EncodeBTStackConfig(BTStackConfig)​

Encode a BTStackConfig object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeBTStackConfig(BTStackConfig bTStackConfig)
Returns​

System.Byte[]: Byte array containing the encoded BTStackConfig object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTStackConfigbTStackConfigBTStackConfig object to be encoded.

ExtractBTStackConfig(byte[], int)​

Extract a BTStackConfig object from a byte array.

View Source​
Declaration
public static BTStackConfig ExtractBTStackConfig(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.BTStackConfig: BTStackConfig object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedBTStackConfigBufferSize(BTStackConfig)​

Calculate the amount of memory required to hold the given instance of the BTStackConfig object.

View Source​
Declaration
public static int EncodedBTStackConfigBufferSize(BTStackConfig bTStackConfig)
Returns​

System.Int32: Number of bytes required to hold the encoded BTStackConfig object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTStackConfigbTStackConfigBTStackConfig object to be encoded.

EncodeBTDataWriteRequest(BTDataWriteRequest)​

Encode a BTDataWriteRequest object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeBTDataWriteRequest(BTDataWriteRequest bTDataWriteRequest)
Returns​

System.Byte[]: Byte array containing the encoded BTDataWriteRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequestbTDataWriteRequestBTDataWriteRequest object to be encoded.

ExtractBTDataWriteRequest(byte[], int)​

Extract a BTDataWriteRequest object from a byte array.

View Source​
Declaration
public static BTDataWriteRequest ExtractBTDataWriteRequest(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequest: BTDataWriteRequest object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedBTDataWriteRequestBufferSize(BTDataWriteRequest)​

Calculate the amount of memory required to hold the given instance of the BTDataWriteRequest object.

View Source​
Declaration
public static int EncodedBTDataWriteRequestBufferSize(BTDataWriteRequest bTDataWriteRequest)
Returns​

System.Int32: Number of bytes required to hold the encoded BTDataWriteRequest object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequestbTDataWriteRequestBTDataWriteRequest object to be encoded.

EncodeBTGetHandlesResponse(BTGetHandlesResponse)​

Encode a BTGetHandlesResponse object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeBTGetHandlesResponse(BTGetHandlesResponse bTGetHandlesResponse)
Returns​

System.Byte[]: Byte array containing the encoded BTGetHandlesResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponsebTGetHandlesResponseBTGetHandlesResponse object to be encoded.

ExtractBTGetHandlesResponse(byte[], int)​

Extract a BTGetHandlesResponse object from a byte array.

View Source​
Declaration
public static BTGetHandlesResponse ExtractBTGetHandlesResponse(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponse: BTGetHandlesResponse object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedBTGetHandlesResponseBufferSize(BTGetHandlesResponse)​

Calculate the amount of memory required to hold the given instance of the BTGetHandlesResponse object.

View Source​
Declaration
public static int EncodedBTGetHandlesResponseBufferSize(BTGetHandlesResponse bTGetHandlesResponse)
Returns​

System.Int32: Number of bytes required to hold the encoded BTGetHandlesResponse object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponsebTGetHandlesResponseBTGetHandlesResponse object to be encoded.

EncodeBTServerDataSet(BTServerDataSet)​

Encode a BTServerDataSet object and return a byte array containing the encoded message.

View Source​
Declaration
public static byte[] EncodeBTServerDataSet(BTServerDataSet bTServerDataSet)
Returns​

System.Byte[]: Byte array containing the encoded BTServerDataSet object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTServerDataSetbTServerDataSetBTServerDataSet object to be encoded.

ExtractBTServerDataSet(byte[], int)​

Extract a BTServerDataSet object from a byte array.

View Source​
Declaration
public static BTServerDataSet ExtractBTServerDataSet(byte[] buffer, int offset)
Returns​

Meadow.Devices.Esp32.MessagePayloads.BTServerDataSet: BTServerDataSet object.

Parameters​
TypeNameDescription
System.Byte[]bufferByte array containing the encoded data.
System.Int32offsetOffset into the buffer where the encoded data can be found.

EncodedBTServerDataSetBufferSize(BTServerDataSet)​

Calculate the amount of memory required to hold the given instance of the BTServerDataSet object.

View Source​
Declaration
public static int EncodedBTServerDataSetBufferSize(BTServerDataSet bTServerDataSet)
Returns​

System.Int32: Number of bytes required to hold the encoded BTServerDataSet object.

Parameters​
TypeNameDescription
Meadow.Devices.Esp32.MessagePayloads.BTServerDataSetbTServerDataSetBTServerDataSet object to be encoded.