Skip to content

TembooMessaging

詳細情報

メンバー

TembooMessaging()

TembooMessaging::TembooMessaging(TembooSensor **sensors, int pinTableSize)

引数

  • TembooSensor** sensors
  • int pinTableSize

begin()

void TembooMessaging::begin()

setAccountName()

void TembooMessaging::setAccountName(const String &accountName)

引数

  • constString & accountName

setAccountName()

void TembooMessaging::setAccountName(const char *accountName)

引数

  • constchar * accountName

setAppKeyName()

void TembooMessaging::setAppKeyName(const String &appKeyName)

引数

  • constString & appKeyName

setAppKeyName()

void TembooMessaging::setAppKeyName(const char *appKeyName)

引数

  • constchar * appKeyName

setAppKey()

void TembooMessaging::setAppKey(const String &appKey)

引数

  • constString & appKey

setAppKey()

void TembooMessaging::setAppKey(const char *appKey)

引数

  • constchar * appKey

setDeviceID()

void TembooMessaging::setDeviceID(const String &appKey)

引数

  • constString & appKey

setDeviceID()

void TembooMessaging::setDeviceID(const char *appKey)

引数

  • constchar * appKey

initiateConnection()

int TembooMessaging::initiateConnection()

戻り値

int

poll()

WSMessageRequest TembooMessaging::poll()

戻り値

WSMessageRequest

sendData()

void TembooMessaging::sendData(int pin, float pinVal)

引数

  • int pin
  • float pinVal

updatePinValue()

void TembooMessaging::updatePinValue(int pinNum, int pinVal)

引数

  • int pinNum
  • int pinVal

retrievePinValue()

int TembooMessaging::retrievePinValue(int pinNum)

引数

  • int pinNum

戻り値

int

addTembooSensor()

int TembooMessaging::addTembooSensor(TembooSensor *sensor)

引数

  • TembooSensor* sensor

戻り値

int

setSensorsToDefaultState()

void TembooMessaging::setSensorsToDefaultState()

isConnected()

bool TembooMessaging::isConnected()

戻り値

bool

sendData()

void TembooMessaging::sendData(int pin, int pinVal, bool requestResponse=false)

引数

  • int pin
  • int pinVal
  • bool requestResponse