mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
@@ -104,7 +104,7 @@ void BrokerRecvTask::run(void)
|
||||
{
|
||||
client = _gateway->getClientList()->getClient(0);
|
||||
|
||||
while (client > 0)
|
||||
while ( client )
|
||||
{
|
||||
_light->blueLight(false);
|
||||
if (client->getNetwork()->isValid())
|
||||
|
||||
@@ -191,11 +191,6 @@ void Gateway::initialize(int argc, char** argv)
|
||||
_params.keepAlive = atoi(param);
|
||||
}
|
||||
|
||||
if (_params.keepAlive > 65536)
|
||||
{
|
||||
throw Exception("Gateway::initialize: KeepAliveTime is grater than 65536 Secs");
|
||||
}
|
||||
|
||||
if (getParam("LoginID", param) == 0)
|
||||
{
|
||||
_params.loginId = strdup(param);
|
||||
|
||||
Reference in New Issue
Block a user