1、add support xiuos platform for ota
2、change Kconfig for mqtt and Modify variable name 3、change ota functions for support xiuos platform
This commit is contained in:
@@ -1,33 +1,71 @@
|
||||
menu "lib using MQTT"
|
||||
|
||||
menuconfig TOOL_USING_MQTT
|
||||
menuconfig LIB_USING_MQTT
|
||||
bool "Enable support MQTT function"
|
||||
default n
|
||||
select SUPPORT_CONNECTION_FRAMEWORK
|
||||
select CONNECTION_ADAPTER_4G
|
||||
|
||||
if TOOL_USING_MQTT
|
||||
menu "MQTT connection parameter configuration."
|
||||
config PLATFORM_PRODUCTKEY
|
||||
string "Product Key, used to identify a product."
|
||||
default "iv74vebCdJC"
|
||||
|
||||
config CLIENT_DEVICENAME
|
||||
string "Device name, used to identify a client device."
|
||||
default "D001"
|
||||
if LIB_USING_MQTT
|
||||
choice
|
||||
prompt "Choose xiuos platform or Alibaba Cloud platform."
|
||||
default ALIBABA_PLATFORM
|
||||
|
||||
config CLIENT_DEVICESECRET
|
||||
string "Device secret, used for device authentication and data encryption."
|
||||
default "d2e613c4f714b6b0774bd7b68eeceae3"
|
||||
|
||||
config PLATFORM_SERVERIP
|
||||
string "mqtt platform server ip."
|
||||
default "101.133.196.127"
|
||||
config XIUOS_PLATFORM
|
||||
bool "xiuos platform."
|
||||
|
||||
config PLATFORM_SERVERPORT
|
||||
string "mqtt platform server port."
|
||||
default "1883"
|
||||
endmenu
|
||||
config ALIBABA_PLATFORM
|
||||
bool "Alibaba cloud platform."
|
||||
endchoice
|
||||
|
||||
if XIUOS_PLATFORM
|
||||
menu "xiuos platform mqtt connection parameter configuration."
|
||||
|
||||
config CLIENTID
|
||||
string "mqtt client id."
|
||||
default "xidatong0001"
|
||||
|
||||
config USERNAME
|
||||
string "mqtt client username."
|
||||
default "xiuosiot"
|
||||
|
||||
config PASSWORD
|
||||
string "mqtt client login passwd."
|
||||
default "xiuosiot"
|
||||
|
||||
config PLATFORM_SERVERIP
|
||||
string "mqtt platform server ip."
|
||||
default "115.238.53.59"
|
||||
|
||||
config PLATFORM_SERVERPORT
|
||||
string "mqtt platform server port."
|
||||
default "1883"
|
||||
endmenu
|
||||
endif
|
||||
|
||||
if ALIBABA_PLATFORM
|
||||
menu "Alibaba Cloud platform mqtt connection parameter configuration."
|
||||
config PLATFORM_PRODUCTKEY
|
||||
string "Product Key, used to identify a product."
|
||||
default "iv74vebCdJC"
|
||||
|
||||
config CLIENT_DEVICENAME
|
||||
string "Device name, used to identify a client device."
|
||||
default "D001"
|
||||
|
||||
config CLIENT_DEVICESECRET
|
||||
string "Device secret, used for device authentication and data encryption."
|
||||
default "d2e613c4f714b6b0774bd7b68eeceae3"
|
||||
|
||||
config PLATFORM_SERVERIP
|
||||
string "mqtt platform server ip."
|
||||
default "101.133.196.127"
|
||||
|
||||
config PLATFORM_SERVERPORT
|
||||
string "mqtt platform server port."
|
||||
default "1883"
|
||||
endmenu
|
||||
endif
|
||||
endif
|
||||
|
||||
endmenu
|
||||
|
||||
Reference in New Issue
Block a user