I wish I could figure out how the new stackoverflow "reply" system works. But will use this for the moment.
@Artem Bilan, the thing is that setting the Class as String returns
{"action":"2_single","battery":100,"linkquality":232,"voltage":3000}
plus I would assume that having an empty pojo with a no args constructor (maybe this is where I'm mistaking) should still fire.
But even if not, the class had lombok's noArgs+allArgs+data. So it shouldn't be a problem (I really don't want to dive deep into understanding how
MappingJackson2MessageConverter
works.
For a test project. I will try to come up with something on the weekends.