Commit 21e19867 authored by Stefan Dähling's avatar Stefan Dähling

add offset for mqtt message sending based on id

parent d144676c
......@@ -48,6 +48,7 @@ void Ensure_prosumer_behavior::execute_agent_behavior()
/*Upon first execution: perform handshake with ENSURE Flexibility platform*/
if (t_next == t_start){
handshake();
knowledge.set_t_sent(id%10); // offset for sending MQTT message
}
IO->log_info("###### Process incoming messages");
......
......@@ -48,6 +48,7 @@ void Ensure_slack_behavior::execute_agent_behavior()
/*Upon first execution: perform handshake with ENSURE Flexibility platform*/
if (t_next == t_start){
handshake();
knowledge.set_t_sent(id%10); // offset for sending MQTT message
}
IO->log_info("###### Process incoming messages");
......
......@@ -47,6 +47,7 @@ void Ensure_substation_behavior::execute_agent_behavior()
/*Upon first execution: perform handshake with ENSURE Flexibility platform*/
if (t_next == t_start){
handshake();
knowledge.set_t_sent(id%10); // offset for sending MQTT message
}
IO->log_info("###### Process incoming messages");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment