On this page
article
The C2CONNECT Command
While writing payloads for Hak5 devices you can control the C2 Connection state.
To ensure your device is connected to C2 simply run the command: C2CONNECT