pub fn new_ctrl_receiver(state: &AppState, config: &CfgCtrl) -> Result<Queue, Box<dyn StdError>> {
let network = match check_network(FN_NAME, network_id, user_id, true, roles, &state).await? {
let network = match check_network(FN_NAME, network_id, user_id, true, roles, &state).await? {
let network = match check_network(FN_NAME, network_id, user_id, true, roles, &state).await? {
let network = match check_network(FN_NAME, network_id, user_id, true, roles, &state).await? {
/// To check if the user ID can access the device route. Choose `only_owner` to check if the user