Class Encoders
Encapsulate the various message encoder and extract methods.
Assembly: Meadow.F7.dll
View Source
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).
View Source
public static uint CalculateSpiBufferSize(uint requestedSize)
Returns
System.UInt32: Size of the buffer that should be used.
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | requestedSize | Requested 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
public static ushort ExtractUInt16(byte[] buffer, int offset = 0)
Returns
System.UInt16
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Buffer holding the value. |
System.Int32 | offset | Offset 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
public static void EncodeUInt16(ushort value, byte[] buffer, int offset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt16 | value | Value to encode. |
System.Byte[] | buffer | Buffer to store the value. |
System.Int32 | offset | Offset 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
public static uint ExtractUInt32(byte[] buffer, int offset = 0)
Returns
System.UInt32
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Buffer holding the 32-bit value to decode. |
System.Int32 | offset | Offset 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
public static void EncodeUInt32(uint value, byte[] buffer, int offset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
System.UInt32 | value | Value to encode. |
System.Byte[] | buffer | Buffer to store the value. |
System.Int32 | offset | Offset 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
public static int ExtractInt32(byte[] buffer, int offset = 0)
Returns
System.Int32
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Buffer holding the 32-bit value to decode. |
System.Int32 | offset | Offset 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
public static void EncodeInt32(int value, byte[] buffer, int offset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
System.Int32 | value | Value to encode. |
System.Byte[] | buffer | Buffer to store the value. |
System.Int32 | offset | Offset 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
public static void EncodeString(string str, byte[] buffer, int offset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | str | String to encode. |
System.Byte[] | buffer | Buffer to hold the characters. |
System.Int32 | offset | Offset into the buffer for the first character. |
ExtractString(byte[], int)
Extract a string from the buffer.
View Source
public static string ExtractString(byte[] buffer, int offset = 0)
Returns
System.String: The string.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Buffer holding the data to be decoded. |
System.Int32 | offset | Offset into the buffer of the string. |
EncodeSystemConfiguration(SystemConfiguration)
Encode a SystemConfiguration object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSystemConfiguration(SystemConfiguration systemConfiguration)
Returns
System.Byte[]: Byte array containing the encoded SystemConfiguration object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SystemConfiguration | systemConfiguration | SystemConfiguration object to be encoded. |
ExtractSystemConfiguration(byte[], int)
Extract a SystemConfiguration object from a byte array.
View Source
public static SystemConfiguration ExtractSystemConfiguration(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SystemConfiguration: SystemConfiguration object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSystemConfigurationBufferSize(SystemConfiguration systemConfiguration)
Returns
System.Int32: Number of bytes required to hold the encoded SystemConfiguration object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SystemConfiguration | systemConfiguration | SystemConfiguration object to be encoded. |
EncodeConfigurationValue(ConfigurationValue)
Encode a ConfigurationValue object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeConfigurationValue(ConfigurationValue configurationValue)
Returns
System.Byte[]: Byte array containing the encoded ConfigurationValue object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConfigurationValue | configurationValue | ConfigurationValue object to be encoded. |
ExtractConfigurationValue(byte[], int)
Extract a ConfigurationValue object from a byte array.
View Source
public static ConfigurationValue ExtractConfigurationValue(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ConfigurationValue: ConfigurationValue object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedConfigurationValueBufferSize(ConfigurationValue configurationValue)
Returns
System.Int32: Number of bytes required to hold the encoded ConfigurationValue object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConfigurationValue | configurationValue | ConfigurationValue object to be encoded. |
EncodeErrorEvent(ErrorEvent)
Encode a ErrorEvent object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeErrorEvent(ErrorEvent errorEvent)
Returns
System.Byte[]: Byte array containing the encoded ErrorEvent object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ErrorEvent | errorEvent | ErrorEvent object to be encoded. |
ExtractErrorEvent(byte[], int)
Extract a ErrorEvent object from a byte array.
View Source
public static ErrorEvent ExtractErrorEvent(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ErrorEvent: ErrorEvent object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedErrorEventBufferSize(ErrorEvent errorEvent)
Returns
System.Int32: Number of bytes required to hold the encoded ErrorEvent object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ErrorEvent | errorEvent | ErrorEvent object to be encoded. |
EncodeAccessPointInformation(AccessPointInformation)
Encode a AccessPointInformation object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAccessPointInformation(AccessPointInformation accessPointInformation)
Returns
System.Byte[]: Byte array containing the encoded AccessPointInformation object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPointInformation | accessPointInformation | AccessPointInformation object to be encoded. |
ExtractAccessPointInformation(byte[], int)
Extract a AccessPointInformation object from a byte array.
View Source
public static AccessPointInformation ExtractAccessPointInformation(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AccessPointInformation: AccessPointInformation object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAccessPointInformationBufferSize(AccessPointInformation accessPointInformation)
Returns
System.Int32: Number of bytes required to hold the encoded AccessPointInformation object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPointInformation | accessPointInformation | AccessPointInformation object to be encoded. |
EncodeDisconnectFromAccessPointRequest(DisconnectFromAccessPointRequest)
Encode a DisconnectFromAccessPointRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeDisconnectFromAccessPointRequest(DisconnectFromAccessPointRequest disconnectFromAccessPointRequest)
Returns
System.Byte[]: Byte array containing the encoded DisconnectFromAccessPointRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequest | disconnectFromAccessPointRequest | DisconnectFromAccessPointRequest object to be encoded. |
ExtractDisconnectFromAccessPointRequest(byte[], int)
Extract a DisconnectFromAccessPointRequest object from a byte array.
View Source
public static DisconnectFromAccessPointRequest ExtractDisconnectFromAccessPointRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequest: DisconnectFromAccessPointRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedDisconnectFromAccessPointRequestBufferSize(DisconnectFromAccessPointRequest disconnectFromAccessPointRequest)
Returns
System.Int32: Number of bytes required to hold the encoded DisconnectFromAccessPointRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.DisconnectFromAccessPointRequest | disconnectFromAccessPointRequest | DisconnectFromAccessPointRequest object to be encoded. |
EncodeConnectEventData(ConnectEventData)
Encode a ConnectEventData object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeConnectEventData(ConnectEventData connectEventData)
Returns
System.Byte[]: Byte array containing the encoded ConnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConnectEventData | connectEventData | ConnectEventData object to be encoded. |
ExtractConnectEventData(byte[], int)
Extract a ConnectEventData object from a byte array.
View Source
public static ConnectEventData ExtractConnectEventData(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ConnectEventData: ConnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedConnectEventDataBufferSize(ConnectEventData connectEventData)
Returns
System.Int32: Number of bytes required to hold the encoded ConnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConnectEventData | connectEventData | ConnectEventData object to be encoded. |
EncodeNodeConnectionChangeEventData(NodeConnectionChangeEventData)
Encode a NodeConnectionChangeEventData object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeNodeConnectionChangeEventData(NodeConnectionChangeEventData nodeConnectionChangeEventData)
Returns
System.Byte[]: Byte array containing the encoded NodeConnectionChangeEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventData | nodeConnectionChangeEventData | NodeConnectionChangeEventData object to be encoded. |
ExtractNodeConnectionChangeEventData(byte[], int)
Extract a NodeConnectionChangeEventData object from a byte array.
View Source
public static NodeConnectionChangeEventData ExtractNodeConnectionChangeEventData(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventData: NodeConnectionChangeEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedNodeConnectionChangeEventDataBufferSize(NodeConnectionChangeEventData nodeConnectionChangeEventData)
Returns
System.Int32: Number of bytes required to hold the encoded NodeConnectionChangeEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.NodeConnectionChangeEventData | nodeConnectionChangeEventData | NodeConnectionChangeEventData object to be encoded. |
EncodeDisconnectEventData(DisconnectEventData)
Encode a DisconnectEventData object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeDisconnectEventData(DisconnectEventData disconnectEventData)
Returns
System.Byte[]: Byte array containing the encoded DisconnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.DisconnectEventData | disconnectEventData | DisconnectEventData object to be encoded. |
ExtractDisconnectEventData(byte[], int)
Extract a DisconnectEventData object from a byte array.
View Source
public static DisconnectEventData ExtractDisconnectEventData(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.DisconnectEventData: DisconnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedDisconnectEventDataBufferSize(DisconnectEventData disconnectEventData)
Returns
System.Int32: Number of bytes required to hold the encoded DisconnectEventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.DisconnectEventData | disconnectEventData | DisconnectEventData object to be encoded. |
EncodeAccessPoint(AccessPoint)
Encode a AccessPoint object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAccessPoint(AccessPoint accessPoint)
Returns
System.Byte[]: Byte array containing the encoded AccessPoint object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPoint | accessPoint | AccessPoint object to be encoded. |
ExtractAccessPoint(byte[], int)
Extract a AccessPoint object from a byte array.
View Source
public static AccessPoint ExtractAccessPoint(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AccessPoint: AccessPoint object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAccessPointBufferSize(AccessPoint accessPoint)
Returns
System.Int32: Number of bytes required to hold the encoded AccessPoint object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPoint | accessPoint | AccessPoint object to be encoded. |
EncodeAccessPointList(AccessPointList)
Encode a AccessPointList object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAccessPointList(AccessPointList accessPointList)
Returns
System.Byte[]: Byte array containing the encoded AccessPointList object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPointList | accessPointList | AccessPointList object to be encoded. |
ExtractAccessPointList(byte[], int)
Extract a AccessPointList object from a byte array.
View Source
public static AccessPointList ExtractAccessPointList(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AccessPointList: AccessPointList object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAccessPointListBufferSize(AccessPointList accessPointList)
Returns
System.Int32: Number of bytes required to hold the encoded AccessPointList object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AccessPointList | accessPointList | AccessPointList object to be encoded. |
EncodeSockAddr(SockAddr)
Encode a SockAddr object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSockAddr(SockAddr sockAddr)
Returns
System.Byte[]: Byte array containing the encoded SockAddr object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SockAddr | sockAddr | SockAddr object to be encoded. |
ExtractSockAddr(byte[], int)
Extract a SockAddr object from a byte array.
View Source
public static SockAddr ExtractSockAddr(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SockAddr: SockAddr object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSockAddrBufferSize(SockAddr sockAddr)
Returns
System.Int32: Number of bytes required to hold the encoded SockAddr object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SockAddr | sockAddr | SockAddr object to be encoded. |
EncodeAddrInfo(AddrInfo)
Encode a AddrInfo object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAddrInfo(AddrInfo addrInfo)
Returns
System.Byte[]: Byte array containing the encoded AddrInfo object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AddrInfo | addrInfo | AddrInfo object to be encoded. |
ExtractAddrInfo(byte[], int)
Extract a AddrInfo object from a byte array.
View Source
public static AddrInfo ExtractAddrInfo(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AddrInfo: AddrInfo object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAddrInfoBufferSize(AddrInfo addrInfo)
Returns
System.Int32: Number of bytes required to hold the encoded AddrInfo object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AddrInfo | addrInfo | AddrInfo object to be encoded. |
EncodeGetAddrInfoRequest(GetAddrInfoRequest)
Encode a GetAddrInfoRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetAddrInfoRequest(GetAddrInfoRequest getAddrInfoRequest)
Returns
System.Byte[]: Byte array containing the encoded GetAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequest | getAddrInfoRequest | GetAddrInfoRequest object to be encoded. |
ExtractGetAddrInfoRequest(byte[], int)
Extract a GetAddrInfoRequest object from a byte array.
View Source
public static GetAddrInfoRequest ExtractGetAddrInfoRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequest: GetAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetAddrInfoRequestBufferSize(GetAddrInfoRequest getAddrInfoRequest)
Returns
System.Int32: Number of bytes required to hold the encoded GetAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoRequest | getAddrInfoRequest | GetAddrInfoRequest object to be encoded. |
EncodeGetAddrInfoResponse(GetAddrInfoResponse)
Encode a GetAddrInfoResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetAddrInfoResponse(GetAddrInfoResponse getAddrInfoResponse)
Returns
System.Byte[]: Byte array containing the encoded GetAddrInfoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponse | getAddrInfoResponse | GetAddrInfoResponse object to be encoded. |
ExtractGetAddrInfoResponse(byte[], int)
Extract a GetAddrInfoResponse object from a byte array.
View Source
public static GetAddrInfoResponse ExtractGetAddrInfoResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponse: GetAddrInfoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetAddrInfoResponseBufferSize(GetAddrInfoResponse getAddrInfoResponse)
Returns
System.Int32: Number of bytes required to hold the encoded GetAddrInfoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetAddrInfoResponse | getAddrInfoResponse | GetAddrInfoResponse object to be encoded. |
EncodeSocketRequest(SocketRequest)
Encode a SocketRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSocketRequest(SocketRequest socketRequest)
Returns
System.Byte[]: Byte array containing the encoded SocketRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SocketRequest | socketRequest | SocketRequest object to be encoded. |
ExtractSocketRequest(byte[], int)
Extract a SocketRequest object from a byte array.
View Source
public static SocketRequest ExtractSocketRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SocketRequest: SocketRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSocketRequestBufferSize(SocketRequest socketRequest)
Returns
System.Int32: Number of bytes required to hold the encoded SocketRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SocketRequest | socketRequest | SocketRequest object to be encoded. |
EncodeIntegerResponse(IntegerResponse)
Encode a IntegerResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeIntegerResponse(IntegerResponse integerResponse)
Returns
System.Byte[]: Byte array containing the encoded IntegerResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IntegerResponse | integerResponse | IntegerResponse object to be encoded. |
ExtractIntegerResponse(byte[], int)
Extract a IntegerResponse object from a byte array.
View Source
public static IntegerResponse ExtractIntegerResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.IntegerResponse: IntegerResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedIntegerResponseBufferSize(IntegerResponse integerResponse)
Returns
System.Int32: Number of bytes required to hold the encoded IntegerResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IntegerResponse | integerResponse | IntegerResponse object to be encoded. |
EncodeIntegerAndErrnoResponse(IntegerAndErrnoResponse)
Encode a IntegerAndErrnoResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeIntegerAndErrnoResponse(IntegerAndErrnoResponse integerAndErrnoResponse)
Returns
System.Byte[]: Byte array containing the encoded IntegerAndErrnoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponse | integerAndErrnoResponse | IntegerAndErrnoResponse object to be encoded. |
ExtractIntegerAndErrnoResponse(byte[], int)
Extract a IntegerAndErrnoResponse object from a byte array.
View Source
public static IntegerAndErrnoResponse ExtractIntegerAndErrnoResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponse: IntegerAndErrnoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedIntegerAndErrnoResponseBufferSize(IntegerAndErrnoResponse integerAndErrnoResponse)
Returns
System.Int32: Number of bytes required to hold the encoded IntegerAndErrnoResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IntegerAndErrnoResponse | integerAndErrnoResponse | IntegerAndErrnoResponse object to be encoded. |
EncodeConnectRequest(ConnectRequest)
Encode a ConnectRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeConnectRequest(ConnectRequest connectRequest)
Returns
System.Byte[]: Byte array containing the encoded ConnectRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConnectRequest | connectRequest | ConnectRequest object to be encoded. |
ExtractConnectRequest(byte[], int)
Extract a ConnectRequest object from a byte array.
View Source
public static ConnectRequest ExtractConnectRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ConnectRequest: ConnectRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedConnectRequestBufferSize(ConnectRequest connectRequest)
Returns
System.Int32: Number of bytes required to hold the encoded ConnectRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ConnectRequest | connectRequest | ConnectRequest object to be encoded. |
EncodeFreeAddrInfoRequest(FreeAddrInfoRequest)
Encode a FreeAddrInfoRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeFreeAddrInfoRequest(FreeAddrInfoRequest freeAddrInfoRequest)
Returns
System.Byte[]: Byte array containing the encoded FreeAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequest | freeAddrInfoRequest | FreeAddrInfoRequest object to be encoded. |
ExtractFreeAddrInfoRequest(byte[], int)
Extract a FreeAddrInfoRequest object from a byte array.
View Source
public static FreeAddrInfoRequest ExtractFreeAddrInfoRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequest: FreeAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedFreeAddrInfoRequestBufferSize(FreeAddrInfoRequest freeAddrInfoRequest)
Returns
System.Int32: Number of bytes required to hold the encoded FreeAddrInfoRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.FreeAddrInfoRequest | freeAddrInfoRequest | FreeAddrInfoRequest object to be encoded. |
EncodeTimeVal(TimeVal)
Encode a TimeVal object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeTimeVal(TimeVal timeVal)
Returns
System.Byte[]: Byte array containing the encoded TimeVal object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.TimeVal | timeVal | TimeVal object to be encoded. |
ExtractTimeVal(byte[], int)
Extract a TimeVal object from a byte array.
View Source
public static TimeVal ExtractTimeVal(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.TimeVal: TimeVal object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedTimeValBufferSize(TimeVal timeVal)
Returns
System.Int32: Number of bytes required to hold the encoded TimeVal object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.TimeVal | timeVal | TimeVal object to be encoded. |
EncodeSetSockOptRequest(SetSockOptRequest)
Encode a SetSockOptRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSetSockOptRequest(SetSockOptRequest setSockOptRequest)
Returns
System.Byte[]: Byte array containing the encoded SetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequest | setSockOptRequest | SetSockOptRequest object to be encoded. |
ExtractSetSockOptRequest(byte[], int)
Extract a SetSockOptRequest object from a byte array.
View Source
public static SetSockOptRequest ExtractSetSockOptRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequest: SetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSetSockOptRequestBufferSize(SetSockOptRequest setSockOptRequest)
Returns
System.Int32: Number of bytes required to hold the encoded SetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SetSockOptRequest | setSockOptRequest | SetSockOptRequest object to be encoded. |
EncodeGetSockOptRequest(GetSockOptRequest)
Encode a GetSockOptRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetSockOptRequest(GetSockOptRequest getSockOptRequest)
Returns
System.Byte[]: Byte array containing the encoded GetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequest | getSockOptRequest | GetSockOptRequest object to be encoded. |
ExtractGetSockOptRequest(byte[], int)
Extract a GetSockOptRequest object from a byte array.
View Source
public static GetSockOptRequest ExtractGetSockOptRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequest: GetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetSockOptRequestBufferSize(GetSockOptRequest getSockOptRequest)
Returns
System.Int32: Number of bytes required to hold the encoded GetSockOptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockOptRequest | getSockOptRequest | GetSockOptRequest object to be encoded. |
EncodeGetSockOptResponse(GetSockOptResponse)
Encode a GetSockOptResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetSockOptResponse(GetSockOptResponse getSockOptResponse)
Returns
System.Byte[]: Byte array containing the encoded GetSockOptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponse | getSockOptResponse | GetSockOptResponse object to be encoded. |
ExtractGetSockOptResponse(byte[], int)
Extract a GetSockOptResponse object from a byte array.
View Source
public static GetSockOptResponse ExtractGetSockOptResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponse: GetSockOptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetSockOptResponseBufferSize(GetSockOptResponse getSockOptResponse)
Returns
System.Int32: Number of bytes required to hold the encoded GetSockOptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockOptResponse | getSockOptResponse | GetSockOptResponse object to be encoded. |
EncodeLinger(Linger)
Encode a Linger object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeLinger(Linger linger)
Returns
System.Byte[]: Byte array containing the encoded Linger object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.Linger | linger | Linger object to be encoded. |
ExtractLinger(byte[], int)
Extract a Linger object from a byte array.
View Source
public static Linger ExtractLinger(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.Linger: Linger object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedLingerBufferSize(Linger linger)
Returns
System.Int32: Number of bytes required to hold the encoded Linger object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.Linger | linger | Linger object to be encoded. |
EncodeWriteRequest(WriteRequest)
Encode a WriteRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeWriteRequest(WriteRequest writeRequest)
Returns
System.Byte[]: Byte array containing the encoded WriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.WriteRequest | writeRequest | WriteRequest object to be encoded. |
ExtractWriteRequest(byte[], int)
Extract a WriteRequest object from a byte array.
View Source
public static WriteRequest ExtractWriteRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.WriteRequest: WriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedWriteRequestBufferSize(WriteRequest writeRequest)
Returns
System.Int32: Number of bytes required to hold the encoded WriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.WriteRequest | writeRequest | WriteRequest object to be encoded. |
EncodeReadRequest(ReadRequest)
Encode a ReadRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeReadRequest(ReadRequest readRequest)
Returns
System.Byte[]: Byte array containing the encoded ReadRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ReadRequest | readRequest | ReadRequest object to be encoded. |
ExtractReadRequest(byte[], int)
Extract a ReadRequest object from a byte array.
View Source
public static ReadRequest ExtractReadRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ReadRequest: ReadRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedReadRequestBufferSize(ReadRequest readRequest)
Returns
System.Int32: Number of bytes required to hold the encoded ReadRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ReadRequest | readRequest | ReadRequest object to be encoded. |
EncodeReadResponse(ReadResponse)
Encode a ReadResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeReadResponse(ReadResponse readResponse)
Returns
System.Byte[]: Byte array containing the encoded ReadResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ReadResponse | readResponse | ReadResponse object to be encoded. |
ExtractReadResponse(byte[], int)
Extract a ReadResponse object from a byte array.
View Source
public static ReadResponse ExtractReadResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ReadResponse: ReadResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedReadResponseBufferSize(ReadResponse readResponse)
Returns
System.Int32: Number of bytes required to hold the encoded ReadResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ReadResponse | readResponse | ReadResponse object to be encoded. |
EncodeCloseRequest(CloseRequest)
Encode a CloseRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeCloseRequest(CloseRequest closeRequest)
Returns
System.Byte[]: Byte array containing the encoded CloseRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.CloseRequest | closeRequest | CloseRequest object to be encoded. |
ExtractCloseRequest(byte[], int)
Extract a CloseRequest object from a byte array.
View Source
public static CloseRequest ExtractCloseRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.CloseRequest: CloseRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedCloseRequestBufferSize(CloseRequest closeRequest)
Returns
System.Int32: Number of bytes required to hold the encoded CloseRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.CloseRequest | closeRequest | CloseRequest object to be encoded. |
EncodeGetBatteryChargeLevelResponse(GetBatteryChargeLevelResponse)
Encode a GetBatteryChargeLevelResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetBatteryChargeLevelResponse(GetBatteryChargeLevelResponse getBatteryChargeLevelResponse)
Returns
System.Byte[]: Byte array containing the encoded GetBatteryChargeLevelResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponse | getBatteryChargeLevelResponse | GetBatteryChargeLevelResponse object to be encoded. |
ExtractGetBatteryChargeLevelResponse(byte[], int)
Extract a GetBatteryChargeLevelResponse object from a byte array.
View Source
public static GetBatteryChargeLevelResponse ExtractGetBatteryChargeLevelResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponse: GetBatteryChargeLevelResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetBatteryChargeLevelResponseBufferSize(GetBatteryChargeLevelResponse getBatteryChargeLevelResponse)
Returns
System.Int32: Number of bytes required to hold the encoded GetBatteryChargeLevelResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetBatteryChargeLevelResponse | getBatteryChargeLevelResponse | GetBatteryChargeLevelResponse object to be encoded. |
EncodeSendRequest(SendRequest)
Encode a SendRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSendRequest(SendRequest sendRequest)
Returns
System.Byte[]: Byte array containing the encoded SendRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SendRequest | sendRequest | SendRequest object to be encoded. |
ExtractSendRequest(byte[], int)
Extract a SendRequest object from a byte array.
View Source
public static SendRequest ExtractSendRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SendRequest: SendRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSendRequestBufferSize(SendRequest sendRequest)
Returns
System.Int32: Number of bytes required to hold the encoded SendRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SendRequest | sendRequest | SendRequest object to be encoded. |
EncodeSendToRequest(SendToRequest)
Encode a SendToRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSendToRequest(SendToRequest sendToRequest)
Returns
System.Byte[]: Byte array containing the encoded SendToRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SendToRequest | sendToRequest | SendToRequest object to be encoded. |
ExtractSendToRequest(byte[], int)
Extract a SendToRequest object from a byte array.
View Source
public static SendToRequest ExtractSendToRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SendToRequest: SendToRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSendToRequestBufferSize(SendToRequest sendToRequest)
Returns
System.Int32: Number of bytes required to hold the encoded SendToRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SendToRequest | sendToRequest | SendToRequest object to be encoded. |
EncodeRecvFromRequest(RecvFromRequest)
Encode a RecvFromRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeRecvFromRequest(RecvFromRequest recvFromRequest)
Returns
System.Byte[]: Byte array containing the encoded RecvFromRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.RecvFromRequest | recvFromRequest | RecvFromRequest object to be encoded. |
ExtractRecvFromRequest(byte[], int)
Extract a RecvFromRequest object from a byte array.
View Source
public static RecvFromRequest ExtractRecvFromRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.RecvFromRequest: RecvFromRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedRecvFromRequestBufferSize(RecvFromRequest recvFromRequest)
Returns
System.Int32: Number of bytes required to hold the encoded RecvFromRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.RecvFromRequest | recvFromRequest | RecvFromRequest object to be encoded. |
EncodeRecvFromResponse(RecvFromResponse)
Encode a RecvFromResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeRecvFromResponse(RecvFromResponse recvFromResponse)
Returns
System.Byte[]: Byte array containing the encoded RecvFromResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.RecvFromResponse | recvFromResponse | RecvFromResponse object to be encoded. |
ExtractRecvFromResponse(byte[], int)
Extract a RecvFromResponse object from a byte array.
View Source
public static RecvFromResponse ExtractRecvFromResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.RecvFromResponse: RecvFromResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedRecvFromResponseBufferSize(RecvFromResponse recvFromResponse)
Returns
System.Int32: Number of bytes required to hold the encoded RecvFromResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.RecvFromResponse | recvFromResponse | RecvFromResponse object to be encoded. |
EncodePollRequest(PollRequest)
Encode a PollRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodePollRequest(PollRequest pollRequest)
Returns
System.Byte[]: Byte array containing the encoded PollRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.PollRequest | pollRequest | PollRequest object to be encoded. |
ExtractPollRequest(byte[], int)
Extract a PollRequest object from a byte array.
View Source
public static PollRequest ExtractPollRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.PollRequest: PollRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedPollRequestBufferSize(PollRequest pollRequest)
Returns
System.Int32: Number of bytes required to hold the encoded PollRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.PollRequest | pollRequest | PollRequest object to be encoded. |
EncodePollResponse(PollResponse)
Encode a PollResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodePollResponse(PollResponse pollResponse)
Returns
System.Byte[]: Byte array containing the encoded PollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.PollResponse | pollResponse | PollResponse object to be encoded. |
ExtractPollResponse(byte[], int)
Extract a PollResponse object from a byte array.
View Source
public static PollResponse ExtractPollResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.PollResponse: PollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedPollResponseBufferSize(PollResponse pollResponse)
Returns
System.Int32: Number of bytes required to hold the encoded PollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.PollResponse | pollResponse | PollResponse object to be encoded. |
EncodeInterruptPollResponse(InterruptPollResponse)
Encode a InterruptPollResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeInterruptPollResponse(InterruptPollResponse interruptPollResponse)
Returns
System.Byte[]: Byte array containing the encoded InterruptPollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponse | interruptPollResponse | InterruptPollResponse object to be encoded. |
ExtractInterruptPollResponse(byte[], int)
Extract a InterruptPollResponse object from a byte array.
View Source
public static InterruptPollResponse ExtractInterruptPollResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponse: InterruptPollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedInterruptPollResponseBufferSize(InterruptPollResponse interruptPollResponse)
Returns
System.Int32: Number of bytes required to hold the encoded InterruptPollResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.InterruptPollResponse | interruptPollResponse | InterruptPollResponse object to be encoded. |
EncodeListenRequest(ListenRequest)
Encode a ListenRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeListenRequest(ListenRequest listenRequest)
Returns
System.Byte[]: Byte array containing the encoded ListenRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ListenRequest | listenRequest | ListenRequest object to be encoded. |
ExtractListenRequest(byte[], int)
Extract a ListenRequest object from a byte array.
View Source
public static ListenRequest ExtractListenRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.ListenRequest: ListenRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedListenRequestBufferSize(ListenRequest listenRequest)
Returns
System.Int32: Number of bytes required to hold the encoded ListenRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.ListenRequest | listenRequest | ListenRequest object to be encoded. |
EncodeBindRequest(BindRequest)
Encode a BindRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeBindRequest(BindRequest bindRequest)
Returns
System.Byte[]: Byte array containing the encoded BindRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BindRequest | bindRequest | BindRequest object to be encoded. |
ExtractBindRequest(byte[], int)
Extract a BindRequest object from a byte array.
View Source
public static BindRequest ExtractBindRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.BindRequest: BindRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedBindRequestBufferSize(BindRequest bindRequest)
Returns
System.Int32: Number of bytes required to hold the encoded BindRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BindRequest | bindRequest | BindRequest object to be encoded. |
EncodeAcceptRequest(AcceptRequest)
Encode a AcceptRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAcceptRequest(AcceptRequest acceptRequest)
Returns
System.Byte[]: Byte array containing the encoded AcceptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AcceptRequest | acceptRequest | AcceptRequest object to be encoded. |
ExtractAcceptRequest(byte[], int)
Extract a AcceptRequest object from a byte array.
View Source
public static AcceptRequest ExtractAcceptRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AcceptRequest: AcceptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAcceptRequestBufferSize(AcceptRequest acceptRequest)
Returns
System.Int32: Number of bytes required to hold the encoded AcceptRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AcceptRequest | acceptRequest | AcceptRequest object to be encoded. |
EncodeAcceptResponse(AcceptResponse)
Encode a AcceptResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeAcceptResponse(AcceptResponse acceptResponse)
Returns
System.Byte[]: Byte array containing the encoded AcceptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AcceptResponse | acceptResponse | AcceptResponse object to be encoded. |
ExtractAcceptResponse(byte[], int)
Extract a AcceptResponse object from a byte array.
View Source
public static AcceptResponse ExtractAcceptResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.AcceptResponse: AcceptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedAcceptResponseBufferSize(AcceptResponse acceptResponse)
Returns
System.Int32: Number of bytes required to hold the encoded AcceptResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.AcceptResponse | acceptResponse | AcceptResponse object to be encoded. |
EncodeIoctlRequest(IoctlRequest)
Encode a IoctlRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeIoctlRequest(IoctlRequest ioctlRequest)
Returns
System.Byte[]: Byte array containing the encoded IoctlRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IoctlRequest | ioctlRequest | IoctlRequest object to be encoded. |
ExtractIoctlRequest(byte[], int)
Extract a IoctlRequest object from a byte array.
View Source
public static IoctlRequest ExtractIoctlRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.IoctlRequest: IoctlRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedIoctlRequestBufferSize(IoctlRequest ioctlRequest)
Returns
System.Int32: Number of bytes required to hold the encoded IoctlRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IoctlRequest | ioctlRequest | IoctlRequest object to be encoded. |
EncodeIoctlResponse(IoctlResponse)
Encode a IoctlResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeIoctlResponse(IoctlResponse ioctlResponse)
Returns
System.Byte[]: Byte array containing the encoded IoctlResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IoctlResponse | ioctlResponse | IoctlResponse object to be encoded. |
ExtractIoctlResponse(byte[], int)
Extract a IoctlResponse object from a byte array.
View Source
public static IoctlResponse ExtractIoctlResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.IoctlResponse: IoctlResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedIoctlResponseBufferSize(IoctlResponse ioctlResponse)
Returns
System.Int32: Number of bytes required to hold the encoded IoctlResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.IoctlResponse | ioctlResponse | IoctlResponse object to be encoded. |
EncodeGetSockPeerNameRequest(GetSockPeerNameRequest)
Encode a GetSockPeerNameRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetSockPeerNameRequest(GetSockPeerNameRequest getSockPeerNameRequest)
Returns
System.Byte[]: Byte array containing the encoded GetSockPeerNameRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequest | getSockPeerNameRequest | GetSockPeerNameRequest object to be encoded. |
ExtractGetSockPeerNameRequest(byte[], int)
Extract a GetSockPeerNameRequest object from a byte array.
View Source
public static GetSockPeerNameRequest ExtractGetSockPeerNameRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequest: GetSockPeerNameRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetSockPeerNameRequestBufferSize(GetSockPeerNameRequest getSockPeerNameRequest)
Returns
System.Int32: Number of bytes required to hold the encoded GetSockPeerNameRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameRequest | getSockPeerNameRequest | GetSockPeerNameRequest object to be encoded. |
EncodeGetSockPeerNameResponse(GetSockPeerNameResponse)
Encode a GetSockPeerNameResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeGetSockPeerNameResponse(GetSockPeerNameResponse getSockPeerNameResponse)
Returns
System.Byte[]: Byte array containing the encoded GetSockPeerNameResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponse | getSockPeerNameResponse | GetSockPeerNameResponse object to be encoded. |
ExtractGetSockPeerNameResponse(byte[], int)
Extract a GetSockPeerNameResponse object from a byte array.
View Source
public static GetSockPeerNameResponse ExtractGetSockPeerNameResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponse: GetSockPeerNameResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedGetSockPeerNameResponseBufferSize(GetSockPeerNameResponse getSockPeerNameResponse)
Returns
System.Int32: Number of bytes required to hold the encoded GetSockPeerNameResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.GetSockPeerNameResponse | getSockPeerNameResponse | GetSockPeerNameResponse object to be encoded. |
EncodeEventData(EventData)
Encode a EventData object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeEventData(EventData eventData)
Returns
System.Byte[]: Byte array containing the encoded EventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.EventData | eventData | EventData object to be encoded. |
ExtractEventData(byte[], int)
Extract a EventData object from a byte array.
View Source
public static EventData ExtractEventData(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.EventData: EventData object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedEventDataBufferSize(EventData eventData)
Returns
System.Int32: Number of bytes required to hold the encoded EventData object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.EventData | eventData | EventData object to be encoded. |
EncodeEventDataPayload(EventDataPayload)
Encode a EventDataPayload object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeEventDataPayload(EventDataPayload eventDataPayload)
Returns
System.Byte[]: Byte array containing the encoded EventDataPayload object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.EventDataPayload | eventDataPayload | EventDataPayload object to be encoded. |
ExtractEventDataPayload(byte[], int)
Extract a EventDataPayload object from a byte array.
View Source
public static EventDataPayload ExtractEventDataPayload(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.EventDataPayload: EventDataPayload object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedEventDataPayloadBufferSize(EventDataPayload eventDataPayload)
Returns
System.Int32: Number of bytes required to hold the encoded EventDataPayload object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.EventDataPayload | eventDataPayload | EventDataPayload object to be encoded. |
EncodeSetAntennaRequest(SetAntennaRequest)
Encode a SetAntennaRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeSetAntennaRequest(SetAntennaRequest setAntennaRequest)
Returns
System.Byte[]: Byte array containing the encoded SetAntennaRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequest | setAntennaRequest | SetAntennaRequest object to be encoded. |
ExtractSetAntennaRequest(byte[], int)
Extract a SetAntennaRequest object from a byte array.
View Source
public static SetAntennaRequest ExtractSetAntennaRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequest: SetAntennaRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedSetAntennaRequestBufferSize(SetAntennaRequest setAntennaRequest)
Returns
System.Int32: Number of bytes required to hold the encoded SetAntennaRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.SetAntennaRequest | setAntennaRequest | SetAntennaRequest object to be encoded. |
EncodeBTStackConfig(BTStackConfig)
Encode a BTStackConfig object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeBTStackConfig(BTStackConfig bTStackConfig)
Returns
System.Byte[]: Byte array containing the encoded BTStackConfig object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTStackConfig | bTStackConfig | BTStackConfig object to be encoded. |
ExtractBTStackConfig(byte[], int)
Extract a BTStackConfig object from a byte array.
View Source
public static BTStackConfig ExtractBTStackConfig(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.BTStackConfig: BTStackConfig object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedBTStackConfigBufferSize(BTStackConfig bTStackConfig)
Returns
System.Int32: Number of bytes required to hold the encoded BTStackConfig object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTStackConfig | bTStackConfig | BTStackConfig object to be encoded. |
EncodeBTDataWriteRequest(BTDataWriteRequest)
Encode a BTDataWriteRequest object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeBTDataWriteRequest(BTDataWriteRequest bTDataWriteRequest)
Returns
System.Byte[]: Byte array containing the encoded BTDataWriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequest | bTDataWriteRequest | BTDataWriteRequest object to be encoded. |
ExtractBTDataWriteRequest(byte[], int)
Extract a BTDataWriteRequest object from a byte array.
View Source
public static BTDataWriteRequest ExtractBTDataWriteRequest(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequest: BTDataWriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedBTDataWriteRequestBufferSize(BTDataWriteRequest bTDataWriteRequest)
Returns
System.Int32: Number of bytes required to hold the encoded BTDataWriteRequest object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTDataWriteRequest | bTDataWriteRequest | BTDataWriteRequest object to be encoded. |
EncodeBTGetHandlesResponse(BTGetHandlesResponse)
Encode a BTGetHandlesResponse object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeBTGetHandlesResponse(BTGetHandlesResponse bTGetHandlesResponse)
Returns
System.Byte[]: Byte array containing the encoded BTGetHandlesResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponse | bTGetHandlesResponse | BTGetHandlesResponse object to be encoded. |
ExtractBTGetHandlesResponse(byte[], int)
Extract a BTGetHandlesResponse object from a byte array.
View Source
public static BTGetHandlesResponse ExtractBTGetHandlesResponse(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponse: BTGetHandlesResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedBTGetHandlesResponseBufferSize(BTGetHandlesResponse bTGetHandlesResponse)
Returns
System.Int32: Number of bytes required to hold the encoded BTGetHandlesResponse object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTGetHandlesResponse | bTGetHandlesResponse | BTGetHandlesResponse object to be encoded. |
EncodeBTServerDataSet(BTServerDataSet)
Encode a BTServerDataSet object and return a byte array containing the encoded message.
View Source
public static byte[] EncodeBTServerDataSet(BTServerDataSet bTServerDataSet)
Returns
System.Byte[]: Byte array containing the encoded BTServerDataSet object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTServerDataSet | bTServerDataSet | BTServerDataSet object to be encoded. |
ExtractBTServerDataSet(byte[], int)
Extract a BTServerDataSet object from a byte array.
View Source
public static BTServerDataSet ExtractBTServerDataSet(byte[] buffer, int offset)
Returns
Meadow.Devices.Esp32.MessagePayloads.BTServerDataSet: BTServerDataSet object.
Parameters
| Type | Name | Description |
|---|---|---|
System.Byte[] | buffer | Byte array containing the encoded data. |
System.Int32 | offset | Offset 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
public static int EncodedBTServerDataSetBufferSize(BTServerDataSet bTServerDataSet)
Returns
System.Int32: Number of bytes required to hold the encoded BTServerDataSet object.
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Devices.Esp32.MessagePayloads.BTServerDataSet | bTServerDataSet | BTServerDataSet object to be encoded. |