mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
BugFix: Issue #47 'START_BYTE' was not declared
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -25,7 +25,7 @@ namespace MQTTSNGW
|
||||
/*=================================
|
||||
* Starting prompt
|
||||
==================================*/
|
||||
#define GATEWAY_VERSION " * Version: 0.9.6"
|
||||
#define GATEWAY_VERSION " * Version: 0.9.7"
|
||||
|
||||
#define PAHO_COPYRIGHT0 " * MQTT-SN Transparent Gateway"
|
||||
#define PAHO_COPYRIGHT1 " * Part of Project Paho in Eclipse"
|
||||
|
||||
@@ -290,7 +290,15 @@ bool Network::connect(const char* host, const char* port, const char* caPath, co
|
||||
{
|
||||
SSL_load_error_strings();
|
||||
SSL_library_init();
|
||||
|
||||
#if ( OPENSSL_VERSION_NUMBER >= 0x10100000L )
|
||||
_ctx = SSL_CTX_new(TLS_client_method());
|
||||
#elif ( OPENSSL_VERSION_NUMBER >= 0x10001000L )
|
||||
_ctx = SSL_CTX_new(TLSv1_client_method());
|
||||
#else
|
||||
_ctx = SSL_CTX_new(SSLv23_client_method());
|
||||
#endif
|
||||
|
||||
if (_ctx == 0)
|
||||
{
|
||||
ERR_error_string_n(ERR_get_error(), errmsg, sizeof(errmsg));
|
||||
|
||||
@@ -40,9 +40,10 @@ namespace MQTTSNGW
|
||||
|
||||
#define XMIT_STATUS_TIME_OVER 5000
|
||||
|
||||
#define ESCAPE 0x7d
|
||||
#define XON 0x11
|
||||
#define XOFF 0x13
|
||||
#define START_BYTE 0x7e
|
||||
#define ESCAPE 0x7d
|
||||
#define XON 0x11
|
||||
#define XOFF 0x13
|
||||
|
||||
/*===========================================
|
||||
Class SerialPort
|
||||
|
||||
Reference in New Issue
Block a user