DadcaProtocolSensor

Description

Functions

DadcaMessage

DadcaMessage lastPayload = DadcaMessage();

cMessage

cMessage *generationTimer = new cMessage();

initialize

virtual void initialize(int stage) override;

handleMessage

virtual void handleMessage(cMessage *msg) override;

handleTelemetry

virtual void handleTelemetry(gradys_simulations::Telemetry *telemetry) override { return; };

Sensor does not recieve telemetry

handlePacket

virtual void handlePacket(Packet *pk) override;

Reacts to message recieved and updates payload accordingly

updatePayload

virtual void updatePayload(const char *target);

Updates payload that communication will send