Skip to content

Lite API: Companion

Gyeonghwan Hong edited this page Dec 21, 2020 · 5 revisions

Parent Document: ANT APIs

Companion API comprises of connection-handling functions and message-transmission functions.

ANT framework supports communication with smartphone companion.

Companion API internally calls P2P communication functions to transmit the message requested by applications. As now, ANT Lite supports only Internet-based connection with companion device. P2P-based connection (ex. Bluetooth or Wi-Fi Direct) will be supported soon.

var companionAPI = require('ant').companion;

Connection handling

Message transmission