A daemon to control your USB Gadgets via json over a unix domain socket.
This has been tested briefly on a Raspberry Pi Zero 2 W.
Example Request:
{
"type": "get",
"target": "status"
}
Example Response:
{
"type": "status",
"msg": {
"active": "ecm"
}
}
Example Request:
{
"type": "set",
"target": "active",
"msg": {
"mode": "mass_storage",
"lun_list": [
"/disks/drive1.img"
]
}
}
Example Response:
{
"type": "status",
"msg": {
"active": "mass_storage"
}
}