示例#1
0
 INT32 _CoordCB::getGroupInfo ( const CHAR *groupName,
                                CoordGroupInfoPtr &groupInfo )
 {
    UINT32 groupID = 0 ;
    INT32 rc = groupName2ID( groupName, groupID ) ;
    if ( SDB_OK == rc )
    {
       rc = getGroupInfo( groupID, groupInfo ) ;
    }
    return rc ;
 }
示例#2
0
文件: ESPHue.cpp 项目: Bobbs/ESP_Hue
int ESPHue::getGroupState(byte groupNum)
{
    int groupState = 0;
    String response = getGroupInfo(groupNum);
    
    if (response.indexOf("\"on\":false") != -1)
    {
      groupState = 0;
    }
    if (response.indexOf("\"on\":true") != -1)
    {
      groupState = 1;
    }
    return groupState;
}