Closed jjduhamel closed 4 years ago
Hi John!
You are right, the documentation for this is a bit outdated, a fix for it is already on the way. It seems like you have found out most of the new stuff by yourself. Probably the module is not active though. To do this you must set configuration.moduleActive = true
for the PingModule. You can either do this inside of PingModule::ResetToDefaultConfiguration()
or inside of setFeaturesetConfiguration_github
in the case that config->moduleId == ModuleId::PING_MODULE
. Hope this helps!
Jakob
So that you don't have to wait for the documentation to be updated for our github version. Here is a link to the already released commercial version of the documentation. "Custom Modul" description is the same for commercial and non-commercial edition.
Thanks for the link. I'm able to load the module, but when I issue pingmod 0
or pingmod this
, I see log messages from PingModule::TerminalCommandHandler but nothing from PingModule::MeshMessageReceivedHandler.
< pingmod 0
00> [PingModule.cpp@92 PINGMOD]: Trying to ping node 0 (201)
@volkrass or @Brotcrunsher , any comments on this?
I have checked it and for me this is working. Could you give me more details please?
status
you get a few details about the node. Could you tell me the Mesh clusterSize
that is reported by this command? If both nodes are connected correctly it should report 2.PINGMOD
tag on both nodes?I found the issue. In PingModule.cpp I needed to set configuration.moduleActive = true;
in PingModule::ResetToDefaultConfiguration. It's working as expected now.
I am happy that you were able to fix your issue. Yes, the module must be set active, as I wrote in my first response.
Ah yes I overlooked that. Thanks for your help.
Since the recent update, I'm having trouble figuring out how to load and activate my custom modules. I see the code related to this has changed, but the docs and example code are both still relevant to the old codebase.
In addition to the changes I made here: https://github.com/mwaylabs/fruitymesh/pull/117, I've made the following changes:
Is there some other step that I'm missing?