Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
Diff: Indication/SSIDRecordIndication.cpp
- Revision:
- 9:0ce800923eda
- Parent:
- 1:fd19bd683e90
--- a/Indication/SSIDRecordIndication.cpp Mon Feb 15 15:17:50 2016 +0000 +++ b/Indication/SSIDRecordIndication.cpp Wed Mar 16 15:04:46 2016 +0000 @@ -11,21 +11,21 @@ return GetData()[2]; } -void SSIDRecordIndication::GetRecords(WIFINetworkDetail * list) +void SSIDRecordIndication::GetRecords(WIFINetworkDetail * details) { int count = GetNumberofRecords(); if (count <= 0) return; - + int index = 0; int _position = 3; const char * value = GetData(); while (index < count) { - - list[index].SetChannel(value[_position++]) + + (details + index)->SetChannel(value[_position++]) ->SetRSSI(value[_position++]) ->SetSecurityMode((SecurityMode)value[_position++]) ->SetBSSID(value + _position) @@ -33,8 +33,8 @@ ->SetMaxDataRate(value[_position++]) ->SetSSID(value + (_position += 2)); - _position+= strlen(list[index].GetSSID()) + 1; - + _position+= strlen((details + index)->GetSSID()) + 1; + index++; } } \ No newline at end of file