Ok now I have found the proper place to include the missing .cpp files to generate the .o files.
In the MySensor.h are all necessary .cpp files from the /core folder
#if defined(MY_GATEWAY_LINUX)
#include "drivers/Linux/EthernetClient.h"
#include "drivers/Linux/EthernetServer.h"
#include "drivers/Linux/IPAddress.h"
#endif
#include "drivers/PubSubClient/PubSubClient.cpp"
#include "core/MyGatewayTransportMQTTClient.cpp"
#include "core/MySmartSleep.cpp"
#include "core/MySleepNode.cpp
@Yveaux Yes you are right, didn't thought about the ack's.
Another question. I would like to intercept the message flow in both directions in the gateway to put my logic in (smart sleep). Could you pinpoint me the method where this happens?
@strangeoptics when using MQTT you could publish the messages persistent and have the slave request them on wakeup. That would implement some form of message queuing.