mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
Merge pull request #67 from eclipse/develop
Add João Eduardo's contribution instead of him.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
### **step1. Build the gateway**
|
||||
````
|
||||
$ git clone -b gateway https://github.com/eclipse/paho.mqtt-sn.embedded-c
|
||||
$ git clone https://github.com/eclipse/paho.mqtt-sn.embedded-c
|
||||
$ cd paho.mqtt-sn.embedded-c/MQTTSNGateway
|
||||
$ make
|
||||
$ make install
|
||||
|
||||
@@ -120,7 +120,7 @@ int SensorNetwork::read(uint8_t* buf, uint16_t bufLen)
|
||||
int SensorNetwork::initialize(void)
|
||||
{
|
||||
char param[MQTTSNGW_PARAM_MAX];
|
||||
uint16_t baudrate = 9600;
|
||||
uint32_t baudrate = 9600;
|
||||
uint8_t apimode = 2;
|
||||
|
||||
if (theProcess->getParam("ApiMode", param) == 0)
|
||||
@@ -134,7 +134,7 @@ int SensorNetwork::initialize(void)
|
||||
|
||||
if (theProcess->getParam("Baudrate", param) == 0)
|
||||
{
|
||||
baudrate = (uint16_t)atoi(param);
|
||||
baudrate = (uint32_t)atoi(param);
|
||||
}
|
||||
_description += ", Baudrate ";
|
||||
sprintf(param ,"%d", baudrate);
|
||||
|
||||
Reference in New Issue
Block a user