Roboid Control for C#
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RoboidControl.ModelUrlMsg Class Reference

Detailed Description

Message for communicating the URL for a model of the thing.

Inheritance diagram for RoboidControl.ModelUrlMsg:
RoboidControl.IMessage

Public Member Functions

 ModelUrlMsg (byte networkId, Thing thing)
 Create a new message for sending.
 
 ModelUrlMsg (byte[] buffer)
 
override byte Serialize (ref byte[] buffer)
 

Public Attributes

byte networkId
 The network ID of the thing.
 
byte thingId
 The ID of the thing.
 
byte urlLength
 The length of the url string, excluding the null terminator.
 
string url = null
 The URL of the model.
 

Static Public Attributes

const byte Id = 0x90
 The message ID.
 
const byte length = 4
 The length of the message without th URL itself.
 

Constructor & Destructor Documentation

◆ ModelUrlMsg() [1/2]

RoboidControl.ModelUrlMsg.ModelUrlMsg ( byte  networkId,
Thing  thing 
)

Create a new message for sending.

Parameters
networkIdThe network ID of the thing
thingThe thing for which to send the model URL

◆ ModelUrlMsg() [2/2]

RoboidControl.ModelUrlMsg.ModelUrlMsg ( byte[]  buffer)

Member Function Documentation

◆ Serialize()

override byte RoboidControl.ModelUrlMsg.Serialize ( ref byte[]  buffer)
virtual

Reimplemented from RoboidControl.IMessage.