Need help: LXMF sync from propagation node for own application #113
-
Hi Mark, i develop some small tools/programs which use the LXMF protocoll. Through the tutorial, the source code and the code snippets from HarlekinSimplex I basically understood the functionality. Everything works except for retrieving messages on a propagation node. I am not sure how this works in detail, as it is not apparent in the reticulum manual. At the moment i'm working on a LXMF distribution group (E-Mail style group but with LXMF). Here is my whole sourcecode: I maked a small LXMF class. When i call my sync function:
I get the error:
The whole class:
I don't know why i get this error and how to implement the propagation sync. Maybe you can help me? Many thanks. Sebastian |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I took the liberty to format your post so the code was more readable :) I only looked at this for like 20 seconds, so please correct me if I am wrong, but I think that maybe your problem is here:
That way, you are reading in that config value as a string, not an integer, hence leading to the error So parse it to an int, and I think it will work :) |
Beta Was this translation helpful? Give feedback.
-
message_router.request_messages_from_propagation_node(identity, max_messages = limit) message_router.register_delivery_callback() |
Beta Was this translation helpful? Give feedback.
message_router.request_messages_from_propagation_node(identity, max_messages = limit)
message_router.register_delivery_callback()