Hello,
I want to scan BLE beacons which is currently active and in range by using HM10 BLE [Working as Master].
But not sure as how to scan and get the BLE beacons ID
My Connection is as follows
NodeMCU D5 (RX) ---> HM10 --> TX
NodeMCU D6 (TX) ---> HM10 -->RX
NodeMCU 3.3V ---> HM10 -->VCC
NodeMCU GND ---> HM10 --> GND
please suggest
Thanks
I want to scan BLE beacons which is currently active and in range by using HM10 BLE [Working as Master].
But not sure as how to scan and get the BLE beacons ID
My Connection is as follows
NodeMCU D5 (RX) ---> HM10 --> TX
NodeMCU D6 (TX) ---> HM10 -->RX
NodeMCU 3.3V ---> HM10 -->VCC
NodeMCU GND ---> HM10 --> GND
Current Sketch:
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
If wifi.Connect2("xxxxxx", "xxxxxxx") Then
Log("Connected to network")
Else
Log("Failed to connect to network")
End If
timer1.Initialize("CheckConnStat",2000)
timer1.Enabled=True
'Initialize the Pins
D5.Initialize(dpins.D5,D5.MODE_INPUT) 'This PIN is for RX
D6.Initialize(dpins.D6, D6.MODE_OUTPUT) ''This PIN is for TX
astream.Initialize("D5.DigitalWrite","astream_NewData",Null)
End Sub
Private Sub CheckConnStat
If wifi.IsConnected Then
'Do Nothing
Log("Already Connected")
Else
wifi.Connect2("xxxx", "xxxx")
End If
End Sub
please suggest
Thanks