Skip to content

TembooMQTTClient

詳細情報

メンバー

TembooMQTTClient()

TembooMQTTClient::TembooMQTTClient(TembooMQTTIPStack &ipStack, unsigned int commandTimeoutMs=30000)

引数

  • TembooMQTTIPStack& ipStack
  • unsigned int commandTimeoutMs

~TembooMQTTClient()

TembooMQTTClient::~TembooMQTTClient()

connect()

int TembooMQTTClient::connect(const char *hostname, int port=1883)

引数

  • constchar * hostname
  • int port

戻り値

int

isConnected()

bool TembooMQTTClient::isConnected()

戻り値

bool

sendChoreoRequest()

int TembooMQTTClient::sendChoreoRequest(const char *request, size_t len)

引数

  • constchar * request
  • size_t len

戻り値

int

setDeviceId()

int TembooMQTTClient::setDeviceId(char *id)

引数

  • char * id

戻り値

int

setDeviceIdFromMac()

int TembooMQTTClient::setDeviceIdFromMac(byte(&mac)[6])

引数

  • byte(&) mac

戻り値

int

connect()

Connect - send an connect packet down the network and wait for a Connack The nework object must be connected to the network endpoint before calling this Default connect options are used

int Client::connect()

戻り値

int success code -

connect()

int Client::connect(MQTTPacket_connectData &options)

戻り値

int success code -

isConnected()

Is the client connected?

bool MQTT::Client< Network, Timer, MAX_MQTT_PACKET_SIZE, MAX_MESSAGE_HANDLERS >::isConnected()

戻り値

bool flag - is the client connected or not?