这是那里编译错误
C:\Program Files (x86)\Mind+\Arduino\hardware\tools\mpython\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++ -DESP_PLATFORM -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DHAVE_CONFIG_H -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\config -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\app_trace -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\app_update -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\asio -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\asio -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\bootloader_support -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\bt -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\coap -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\console -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\driver -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp-tls -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp32 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_adc_cal -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_event -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_http_client -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_http_server -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_https_ota -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp_ringbuf -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\ethernet -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\expat -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\fatfs -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\freemodbus -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\freertos -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\heap -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\idf_test -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\jsmn -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\json -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\libsodium -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\log -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\lwip -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\mbedtls -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\mdns -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\micro-ecc -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\mqtt -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\newlib -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\nghttp -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\nvs_flash -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\openssl -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\protobuf-c -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\protocomm -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\pthread -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\sdmmc -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\smartconfig_ack -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\soc -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\spi_flash -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\spiffs -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\tcp_transport -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\tcpip_adapter -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\ulp -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\vfs -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\wear_levelling -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\wifi_provisioning -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\wpa_supplicant -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\xtensa-debug-module -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp-face -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\esp32-camera -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\tools\sdk\include\fb_gfx -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fsingle-precision-constant -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10808 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="mpython" -DESP32 -DCORE_DEBUG_LEVEL=0 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\cores\esp32 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\variants\mpython -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\cores\esp32 -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\variants\mpython -I C:\Program Files (x86)\Mind+\Arduino\libraries\MPython -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\libraries\Wire -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_NeoPixel -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\libraries\RMT -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_SSD1306 -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_ASCIIfont -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_CHfont -I C:\Program Files (x86)\Mind+\Arduino\libraries\MPython_Font -I C:\Program Files (x86)\Mind+\Arduino\libraries\Microbit_IO_BOX -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_DHT -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_Iot -I C:\Program Files (x86)\Mind+\Arduino\hardware\dfrobot\mpython\libraries\WiFi -I C:\Program Files (x86)\Mind+\Arduino\libraries\pubsubclient -I C:\Program Files (x86)\Mind+\Arduino\libraries\ArduinoJson -I C:\Program Files (x86)\Mind+\Arduino\libraries\DFRobot_Servo -I C:\Program Files (x86)\Mind+\Arduino\libraries\MPython_NtpTime C:\Users\fwj\AppData\Local\DFScratch\cache\dfrobot.ino.cpp -o C:\Users\fwj\AppData\Local\DFScratch\cache\dfrobot.ino.cpp.oC:\Users\fwj\AppData\Local\DFScratch\cache\dfrobot.ino.cpp: In function 'void DF_ShuJuKu()':
C:\Users\fwj\AppData\Local\DFScratch\cache\dfrobot.ino.cpp:136:2: error: 'mydb' was not declared in this scope
mydb.updateTagValue(mind_s_shi, dht11_P14.getTemperature());
^
编译失败
怎么回事啊?乱死了。 编译失败是代码的问题,你检查一下代码,发截图过来看看 三春牛-创客 发表于 2023-8-20 11:03
编译失败是代码的问题,你检查一下代码,发截图过来看看
就是这个
影东尼一 发表于 2023-8-20 15:24
就是这个
删了数据库就没事了 影东尼一 发表于 2023-8-20 15:24
就是这个
啊,这么多函数? 影东尼一 发表于 2023-8-20 15:25
删了数据库就没事了
解决了吗? 影东尼一 发表于 2023-8-20 15:25
删了数据库就没事了
删除什么数据库?函数还是服务器 影东尼一 发表于 2023-8-20 15:25
删了数据库就没事了
我好像发现问题了。你这个初始化只是连接了WiFi和MQTT,tinywebDB还没有初始化呢! 影东尼一 发表于 2023-8-20 15:24
就是这个
你除了没有初始化TinyWebDB服务器,MQTT也还没有设置账号呢!!!
影东尼一 发表于 2023-8-20 15:25
删了数据库就没事了
解决一下初始化问题,看可不可以。 根据报错信息来看,是“数据库”这个函数里面的“更新数据”这个积木的报错,报错信息说的是tinywebdb没有用初始化积木
页:
[1]