简体   繁体   English

有关docker nodemcu-build的一般问题

[英]General questions about docker nodemcu-build

Some general questions about the docker nodemcu-build process: 有关docker nodemcu生成过程的一些一般性问题:

  1. Is there a way to specify which modules are included in the build? 有没有办法指定构建中包含哪些模块? (similar to the way the cloud build service works) (类似于云构建服务的工作方式)

  2. Is there a way to include a description that will appear when the resultant firmware is run? 有没有一种方法可以包含运行最终固件时出现的说明?

  3. Is SSL enabled? 是否启用SSL?

  4. The size of the bin file created by the docker nodemcu-build process (from dev branch source) is 405k. docker nodemcu-build进程(来自dev分支源)创建的bin文件的大小为405k。 A recent build using the cloud service resulted in a bin file of size 444k. 最近使用云服务进行的构建产生了大小为444k的bin文件。 The cloud service build only included the following modules: cjson, file, gpio, http, net, node, tmr, uart, wifi, ssl. 云服务构建仅包含以下模块:cjson,文件,gpio,http,net,节点,tmr,uart,wifi,ssl。 Why is the docker build bin file, that contains all modules(?), smaller than the cloud build bin file that only contains 10 modules? 为什么包含所有模块的docker build bin文件比仅包含10个模块的cloud build bin文件要小? (i am concerned that my local docker build version is missing something - even though the build process was error free). (我担心我的本地docker构建版本缺少某些内容-即使构建过程没有错误)。

  1. You specify the modules to be built by uncommenting them in the /app/include/user_modules.h file in the source tree. 您可以通过在源树的/app/include/user_modules.h文件中取消注释来指定要构建的模块。 The default build from the source tree is relatively minimal - not an "all modules" build. 源代码树的默认构建相对较小-不是“所有模块”构建。

  2. The banner at connection is the "Version" field. 连接处的标语是“版本”字段。 The nodemcu-build.com builds change this out for custom text. nodemcu-build.com构建会将其更改为自定义文本。 It is defined in /app/include/user_version.h as the USER_VERSION define. 它在/app/include/user_version.h中定义为USER_VERSION定义。 You'll need to embed "\\n" newlines in the string to get separate lines. 您需要在字符串中嵌入“ \\ n”换行符以获取单独的行。

  3. Yes, the Net module can include limited SSL support (TLS 1.1 only) (TLS 1.2 in dev per Marcel's comment below). 是的,Net模块可以包括有限的SSL支持 (仅TLS 1.1)(根据下面Marcel的评论,TLS 1.2在开发人员中)。 You need to enable it in /app/include/user_config.h by defining CLIENT_SSL_ENABLE . 您需要通过定义CLIENT_SSL_ENABLE/app/include/user_config.h中启用它。

  4. The default module and config setup in user_modules.h / user_config.h is different than the defaults on nodemcu-build.com, so the builds are not likely to be the same out of the box. user_modules.h / user_config.h的默认模块和配置设置与nodemcu-build.com上的默认模块和配置不同,因此,这些版本的开箱不可能相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM