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.

Revision:
0:8e83b9448758
Child:
1:fd19bd683e90
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Indication/SSIDRecordIndication.cpp	Tue Feb 03 21:24:15 2015 +0000
@@ -0,0 +1,40 @@
+#include "SSIDRecordIndication.h"
+
+using namespace SmartLabMuRata;
+
+SSIDRecordIndication::SSIDRecordIndication(Payload * payload)
+    : Payload(payload)
+{}
+
+int SSIDRecordIndication::GetNumberofRecords()
+{
+    return GetData()[2];
+}
+
+void SSIDRecordIndication::GetRecords(WIFINetworkDetail * list)
+{
+    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++])
+        ->SetRSSI(value[_position++])
+        ->SetSecurityMode((SecurityMode)value[_position++])
+        ->SetBSSID(value + _position)
+        ->SetNetworkType((BSSType)value[_position += 6])
+        ->SetMaxDataRate(value[_position++])
+        ->SetSSID(value + (_position += 2));
+
+        _position+= list[index].GetSSID().length() + 1;
+
+        index++;
+    }
+}
\ No newline at end of file