Open RalfUhlig opened 1 year ago
I think I solved the problem with the issue of a not working port A. The io attachments were send too warly, before the app was able to handle messages. There was a workaround with delays, but that didn't work well here. I added a flag to wait for the subscription of a client to be used in the hub emulation sample. See the last two commits https://github.com/RalfUhlig/legoino/commit/cdaa9e10b10507fa5d00cb19a377fd73c569a7be and https://github.com/RalfUhlig/legoino/commit/667177da6a40c74991bb9fc92533427c7312b5e9. The other changes helped me to understand the whole stuff a little bit more, like logging messages as hex strings. Hope it helps an has now big issues.
I think I solved the problem with the issue of a not working port A. The io attachments were send too warly, before the app was able to handle messages. There was a workaround with delays, but that didn't work well here. I added a flag to wait for the subscription of a client to be used in the hub emulation sample. See the last two commits https://github.com/RalfUhlig/legoino/commit/cdaa9e10b10507fa5d00cb19a377fd73c569a7be and https://github.com/RalfUhlig/legoino/commit/667177da6a40c74991bb9fc92533427c7312b5e9. The other changes helped me to understand the whole stuff a little bit more, like logging messages as hex strings. Hope it helps an has now big issues.