mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
I think the architecture of the ble sensor network, which does not use threads per socket, can be applied to DTLS. Known bug: Occasionally a timeout error occurs when connecting to RFCOMM. BLE is not supported yet. I need help to do it. Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -58,6 +58,14 @@ UDPCONF = {
|
||||
20010, // Local PortNo
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* BLE Configuration (theNetcon)
|
||||
*------------------------------------------------------*/
|
||||
BLECONF = { "GatewayTestClient", // ClientId
|
||||
{ 0x60, 0x57, 0x18, 0x06, 0x8b, 0x72 }, // GW Address
|
||||
1, // Rfcomm channel
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* Client Configuration (theMqcon)
|
||||
*------------------------------------------------------*/
|
||||
|
||||
@@ -58,6 +58,14 @@ UDPCONF = {
|
||||
20001, // Local PortNo
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* BLE Configuration (theNetcon)
|
||||
*------------------------------------------------------*/
|
||||
BLECONF = { "GatewayTestClient", // ClientId
|
||||
{ 0x60, 0x57, 0x18, 0x06, 0x8b, 0x72 }, // GW Address
|
||||
1, // Rfcomm channel
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* Client Configuration (theMqcon)
|
||||
*------------------------------------------------------*/
|
||||
|
||||
@@ -58,6 +58,14 @@ UDPCONF = {
|
||||
20011, // Local PortNo
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* BLE Configuration (theNetcon)
|
||||
*------------------------------------------------------*/
|
||||
BLECONF = { "GatewayTestClient", // ClientId
|
||||
{ 0x44, 0x1C, 0xA8, 0x16, 0x94, 0x94 }, // GW Address
|
||||
1, // Rfcomm channel
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* Client Configuration (theMqcon)
|
||||
*------------------------------------------------------*/
|
||||
|
||||
@@ -51,25 +51,31 @@ extern LScreen* theScreen;
|
||||
/*------------------------------------------------------
|
||||
* UDP Configuration (theNetcon)
|
||||
*------------------------------------------------------*/
|
||||
UDPCONF =
|
||||
{ "GatewayTestClient", // ClientId
|
||||
UDPCONF = { "GatewayTestClient", // ClientId
|
||||
{ 225, 1, 1, 1 }, // Multicast group IP
|
||||
1883, // Multicast group Port
|
||||
20020, // Local PortNo
|
||||
};
|
||||
1883, // Multicast group Port
|
||||
20020, // Local PortNo
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* BLE Configuration (theNetcon)
|
||||
*------------------------------------------------------*/
|
||||
BLECONF = { "GatewayTestClient", // ClientId
|
||||
{ 0x60, 0x57, 0x18, 0x06, 0x8b, 0x72 }, // GW Address
|
||||
1, // Rfcomm channel
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* Client Configuration (theMqcon)
|
||||
*------------------------------------------------------*/
|
||||
MQTTSNCONF =
|
||||
{ 60, //KeepAlive [seconds]
|
||||
true, //Clean session
|
||||
300, //Sleep duration [seconds]
|
||||
"", //WillTopic
|
||||
"", //WillMessage
|
||||
0, //WillQos
|
||||
false //WillRetain
|
||||
};
|
||||
MQTTSNCONF = { 60, //KeepAlive [seconds]
|
||||
true, //Clean session
|
||||
300, //Sleep duration [seconds]
|
||||
"", //WillTopic
|
||||
"", //WillMessage
|
||||
0, //WillQos
|
||||
false //WillRetain
|
||||
};
|
||||
|
||||
/*------------------------------------------------------
|
||||
* Define Topics
|
||||
|
||||
Reference in New Issue
Block a user