Implement the list_connected_devices JSON message
Hold the event lock while dispatching JSON messages