Mender Websocket Connection

Hi there, I’ve noticed there’s an endpoint in the management api that lets you establish a direct connection with a device (/devices/{id}/connect) but i’m not too sure how to interface with it. I’ve been able to get some sort of response by copy-pasting what I see in a remote terminal session on the Mender dashboard but that seems to return a “not found” at the end of each response, and I can’t seem to find anything anywhere about how you interface with it.

Does anyone have any idea? Thanks!

Hi @pyxlwuff,

The connect endpoint is currently lacking detail documentation, I’m sorry. Maybe the implementation by @joelguittet is helpful to you? You can find it at https://github.com/joelguittet/mender-mcu-client/blob/master/add-ons/src/mender-troubleshoot.c

Greetz,
Josef

1 Like