Errors in node state machine in node-cpp branch
When constructing a new MQTT-Node using the node-cpp branch, the node fails the call to
prepare. The reason seems to be that the overloaded method
Node::getInputSignals, which asserts that the base node is already in state prepared. This fails because the base node is only set to state prepared after the overloaded method (in this case
mqtt_prepare) has run)
When constructing a File-Node instead, prepare runs without problems, but the call to
Node::start fails on the assertion
_vt->state == State::STARTED.
The code for constructing these node-types can be found in this fork of the dpsim-villas project, namely in the constructor and
open-Method of InterfaceVillas.cpp. Examples for constructing a MQTT- and File-Node specifically can be found in the examples/Python and examples/cxx folder of said project.