The Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. It offers interfaces for accessing topologies, events, motion data, and more.
Cognitive Systems App Core API
Device
A wireless client refers to any device that connects to a network using WiFi technology. For optimal performance with WiFi Sensing, stationary devices such as voice assistants (like Amazon Echo or Google Nest), smart plugs, smart displays, and powered wireless speakers are ideal choices. Wireless clients that are mobile can move around and generally have aggressive sleep modes, less reliable Channel State Information (CSI) data, and are not able to be used to help identify localization, all of which can impact the WiFi Motion performance.
Guardian
Guardian is the name of the application that runs on a device, such as an Access Point, WiFi Extender, or IoT device, within a WiFi Network. It's primary functions are to store configuration settings, communicate with WiFi devices within a network, and communicate with the WiFi Motion infrastructure.
Generic
A webhook is an automated message sent from one app to another when a specific event occurs, like a payment or a code commit. It works by sending an HTTP request containing data (a "payload") to a unique URL provided by the receiving application. This allows for real-time data sharing and communication between applications without constant polling.
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/live
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/live' \
-H 'Authorization: YOUR_API_KEY_HERE'OK.
The loc field provides the most consistent method for identifying the source of a motion event. This field is reliably populated with the unique identifier (e.g., MAC address) of the device associated with the motion. Due to its stable format, the loc field is the preferred method for identifying the reported origin of motion, as opposed to fields that rely on variable display names.
The loc_name is intended to provide a description of the device that is listed in the loc field. The value populated in this field will depend upon the several factors. Examples of types of data that can be populated include the friendly name of the device, the name of the node, and the node location.
The location confidence information as an array of number (float) for the corresponding loc output index. Available as debug output values when Guardian Config -> live_motion -> loc_conf_enable = 1. Supported as of GuardianCore = 0.7.2
{ "ts": 1749733674.23, "links": [ "csi-b-a01b23345678.012ab345c678", "csi-b-a01b23345678.012ab345c67d", "csi-b-a01b23345678.a1234b5c67de" ], "data": { "lraw": [ … ], "mconf": [ … ], "mkai": [ … ], "msad": [ … ], "throughput": [ … ] }, "loc": [ "nomotion" ], "interval": 500, "count": 1, "last_motion": 1749730197.74 }
Request
PubNub is a real-time development platform and infrastructure-as-a-service (IaaS) that enables developers to build interactive applications with real-time features like chat, geolocation tracking, IoT device control, and multiplayer gaming. It provides a publish/subscribe (Pub/Sub) service, serverless functions, and other tools to deliver messages between devices and users with low latency, supporting large-scale, engaging virtual experiences.
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/pubnub
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/pubnub' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"subscribeKey": "string",
"publishKey": "string",
"authKey": "string",
"channel": "string",
"ttl": 300
}'{ "status": 0, "success": 0 }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/refresh
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/motion/refresh' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"ttl": 120
}'{ "status": 0, "success": 0 }