Hi André,
thanks for you reply. Something is still not working even following your suggestion
I've modified the acl file like this
1. topic read NoTopic
2. user subscriber
3. topic #
4. user publisher
5. topic #
6. user UtenteLettura
7. topic read device
8.
I've launched a trace for the user if it may help and this is the result
2021-12-09T09:23:18Z Starting trace for 1 existing sessions for client "mqtt-explorer-4dd829b6" with PIDs [<8597.611.0>]
2021-12-09T09:23:25Z <8597.611.0> Trace session for mqtt-explorer-4dd829b6 stopped
2021-12-09T09:23:26Z New session with PID <8597.626.0> found for client "mqtt-explorer-4dd829b6"
2021-12-09T09:23:26Z <8597.626.0> MQTT RECV: CID: "mqtt-explorer-4dd829b6" CONNECT(c: mqtt-explorer-4dd829b6, v: 4, u: UtenteLettura, p: Prova, cs: 1, ka: 60) 2021-12-09T09:23:26Z <8597.626.0> Calling auth_on_register({{192,168,x,x},56222},{[], <<"mqtt-explorer-4dd829b6">>},UtenteLettura,Prova,true)
2021-12-09T09:23:26Z <8597.626.0> Hook returned "ok"
2021-12-09T09:23:26Z <8597.626.0> MQTT SEND: CID: "mqtt-explorer-4dd829b6" CONNACK(sp: 0, rc: 0)
2021-12-09T09:23:26Z <8597.626.0> MQTT RECV: CID: "mqtt-explorer-4dd829b6" SUBSCRIBE(m23927) with topics: q:0, t: "#"
2021-12-09T09:23:26Z <8597.626.0> Calling auth_on_subscribe(UtenteLettura,{[],<<"mqtt-explorer-4dd829b6">>}) with topics: q:0, t: "#"
2021-12-09T09:23:26Z <8597.626.0> Hook returned {error,plugin_chain_exhausted}
2021-12-09T09:23:26Z <8597.626.0> MQTT RECV: CID: "mqtt-explorer-4dd829b6" SUBSCRIBE(m23928) with topics: q:0, t: "$SYS/#" 2021-12-09T09:23:26Z <8597.626.0> Calling auth_on_subscribe(UtenteLettura,{[], <<"mqtt-explorer-4dd829b6">>}) with topics: q:0, t: "$SYS/#"
2021-12-09T09:23:26Z <8597.626.0> Hook returned {error,plugin_chain_exhausted}
2021-12-09T09:23:26Z <8597.626.0> MQTT SEND: CID: "mqtt-explorer-4dd829b6" SUBACK(m23928, qt[not_allowed])
2021-12-09T09:23:26Z <8597.626.0> MQTT SEND: CID: "mqtt-explorer-4dd829b6" SUBACK(m23927, qt[not_allowed])
Thanks again for help
Luca