예제 #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;
}