fix usart irq handler not in safe area
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
#define MQTT_SERVER_IP "111.230.189.156"
|
||||
#define MQTT_SERVER_PORT "1883"
|
||||
#define MQTT_PRODUCT_ID "Z774IYDTH0"
|
||||
#define MQTT_DEV_NAME "ChinaMobileStandardBoard"
|
||||
#define MQTT_CLIENT_ID "Z774IYDTH0ChinaMobileStandardBoard"
|
||||
#define MQTT_USR_NAME "Z774IYDTH0ChinaMobileStandardBoard;12010126;RJW8Z;1614485713"
|
||||
#define MQTT_PASSWORD "83c5188935eb67708ca5cf3245f4eb3f19b78004e6a0e7d438206939705fc808;hmacsha256"
|
||||
#define MQTT_SUBSCRIBE_TOPIC "Z774IYDTH0/ChinaMobileStandardBoard/cmd"
|
||||
#define MQTT_PUBLISH_TOPIC "Z774IYDTH0/ChinaMobileStandardBoard/gps"
|
||||
#define MQTT_PRODUCT_ID "RUAP1R610V"
|
||||
#define MQTT_DEV_NAME "supowang"
|
||||
#define MQTT_CLIENT_ID "RUAP1R610Vsupowang"
|
||||
#define MQTT_USR_NAME "RUAP1R610Vsupowang;21010406;12365;4294967295"
|
||||
#define MQTT_PASSWORD "1371ae55cd1036f088bd7e39d230712bc3c32c40;hmacsha1"
|
||||
#define MQTT_SUBSCRIBE_TOPIC "RUAP1R610V/supowang/data"
|
||||
#define MQTT_PUBLISH_TOPIC "RUAP1R610V/supowang/data"
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -4,6 +4,13 @@
|
||||
|
||||
#define USE_ESP8266
|
||||
|
||||
static hal_uart_port_t esp8266_port = HAL_UART_PORT_0;
|
||||
|
||||
void mqtt_set_esp8266_port(hal_uart_port_t port) {
|
||||
esp8266_port = port;
|
||||
}
|
||||
|
||||
|
||||
void mqtt_demo(void)
|
||||
{
|
||||
int count = 1;
|
||||
@@ -35,8 +42,8 @@ void mqtt_demo(void)
|
||||
sub_opt.topic = MQTT_SUBSCRIBE_TOPIC;
|
||||
|
||||
#ifdef USE_ESP8266
|
||||
esp8266_sal_init(HAL_UART_PORT_1);
|
||||
esp8266_join_ap("AceiPhone", "12345678");
|
||||
esp8266_sal_init(esp8266_port);
|
||||
esp8266_join_ap("SheldonDai", "srnr6x9xbhmb0");
|
||||
#endif
|
||||
|
||||
#ifdef USE_NB_BC35
|
||||
|
Reference in New Issue
Block a user