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