-
public interface ISigMeshRssi
The principle of obtaining the rssi of the configured network sigMesh is to scan the NetworkIdentity or NodeIdentity of the configured network broadcast packet.
The former only needs to compare whether it is under the mesh network.
while the latter needs to compare the nodeId under the mesh. However, in some scenarios, the cache of nodeIds inside the sdk is sometimes only partial, so the business layer needs to bring in all nodeIds in order to perform accurate matching.
-
-
Method Summary
Modifier and Type Method Description abstract void
startSearchMeshDeviceRssi(long searchTime)
Search the rssi of the sub-device that has been configured on the current Sig Mesh network abstract void
startSearchMeshDeviceRssi(List<String> nodeIds, long searchTime)
Search the rssi of the sub-device that has been configured on the current Sig Mesh network abstract void
registerMeshDeviceRssiListener(IMeshDeviceRssiCallback iMeshDeviceRssiCallback)
Register mesh rssi listener abstract void
stopSearchMeshDeviceRssi()
Stop searching the rssi of the sub-device that has been configured on the current Sig Mesh network abstract void
unRegisterMeshDeviceRssiListener()
unRegister mesh rssi listener abstract void
destroy()
destroy -
-
Method Detail
-
startSearchMeshDeviceRssi
abstract void startSearchMeshDeviceRssi(long searchTime)
Search the rssi of the sub-device that has been configured on the current Sig Mesh network
- Parameters:
searchTime
- searchTime
-
startSearchMeshDeviceRssi
abstract void startSearchMeshDeviceRssi(List<String> nodeIds, long searchTime)
Search the rssi of the sub-device that has been configured on the current Sig Mesh network
- Parameters:
nodeIds
- extra nodeIdBecause in some business scenarios, the nodeIds in the sdk cache are only partial, so the business layer needs to provide all nodeIdssearchTime
- searchTime
-
registerMeshDeviceRssiListener
abstract void registerMeshDeviceRssiListener(IMeshDeviceRssiCallback iMeshDeviceRssiCallback)
Register mesh rssi listener
- Parameters:
iMeshDeviceRssiCallback
- callback for MeshDeviceRssi
-
stopSearchMeshDeviceRssi
abstract void stopSearchMeshDeviceRssi()
Stop searching the rssi of the sub-device that has been configured on the current Sig Mesh network
-
unRegisterMeshDeviceRssiListener
abstract void unRegisterMeshDeviceRssiListener()
unRegister mesh rssi listener
-
destroy
abstract void destroy()
destroy
-
-
-
-