Hello @Gašper Mis,
welcome to this moderated Azure community forum.
it seems you have your (two) device clients connected to the broker and one client can send a message and this one can receive that message.
So, the topic subscription works for this device client.
Now you try to send a message with this device client but that fails.
Double check the topic you use to send a message with the permission bindings:
It feels like a mismatch in that area, I get the same 135 error message when I misconfigure the publish topic.
For a full working example see this blog post. At the end you can find a link to video with a demonstration.
Did you enable the diagnostic settings:
You can check the table with a little more info:
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.