Hello, as somebody else reported in issue #83 I encountered some problems when sending messages due to this lines in the sendMessage(...) method (I am using an ESP32):
The keyboard I am generating needs a DynamicJsonDocument with 768 bytes of capacity to deserialize it correctly (checked this with the ArduinoJson Assistant), but the deserialization fails with a NoMemory error even though getMaxAllocHeap() reports over 49 kB of allocatable heap. In fact the document isn't created at all (checked with doc.capacity() ). Changing the code as such fixes this:
Hello, as somebody else reported in issue #83 I encountered some problems when sending messages due to this lines in the sendMessage(...) method (I am using an ESP32):
The keyboard I am generating needs a DynamicJsonDocument with 768 bytes of capacity to deserialize it correctly (checked this with the ArduinoJson Assistant), but the deserialization fails with a NoMemory error even though getMaxAllocHeap() reports over 49 kB of allocatable heap. In fact the document isn't created at all (checked with doc.capacity() ). Changing the code as such fixes this:
Maybe the code should be adjusted to use a buffer size chosen via defines?