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 ; }
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; }