mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
Bugfix check network status after initialization.
future branch is merged into develop. #69 Change Tab to 4 spaces Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -68,7 +68,11 @@ LGwProxy::~LGwProxy()
|
||||
|
||||
void LGwProxy::initialize(SENSORNET_CONFIG_t* netconf, LMqttsnConfig* mqconf)
|
||||
{
|
||||
_network.initialize(netconf);
|
||||
if (_network.initialize(netconf) == false)
|
||||
{
|
||||
DISPLAY("Can't open SensorNetwork\n");
|
||||
exit(-1);
|
||||
}
|
||||
_clientId = netconf->clientId;
|
||||
_willTopic = mqconf->willTopic;
|
||||
_willMsg = mqconf->willMsg;
|
||||
|
||||
Reference in New Issue
Block a user