diff --git a/src/components/Blockly/generator/sensebox-web.js b/src/components/Blockly/generator/sensebox-web.js index 1645a23..da57c3d 100644 --- a/src/components/Blockly/generator/sensebox-web.js +++ b/src/components/Blockly/generator/sensebox-web.js @@ -59,7 +59,6 @@ Blockly.Arduino.sensebox_startap = function (block) { return code; }; - Blockly.Arduino.sensebox_ethernet = function () { var ip = this.getFieldValue("ip"); var gateway = this.getFieldValue("gateway"); @@ -68,8 +67,7 @@ Blockly.Arduino.sensebox_ethernet = function () { var mac = this.getFieldValue("mac"); var dhcp = this.getFieldValue("dhcp"); - Blockly.Arduino.libraries_["library_senseBoxMCU"] = - '#include "SenseBoxMCU.h"'; + Blockly.Arduino.libraries_["library_senseBoxIO"] = "#include "; Blockly.Arduino.libraries_["library_ethernet"] = "#include "; Blockly.Arduino.definitions_["ethernet_config"] = ` @@ -111,4 +109,3 @@ Blockly.Arduino.sensebox_ethernetIp = function () { var code = "Ethernet.localIP()"; return [code, Blockly.Arduino.ORDER_ATOMIC]; }; - diff --git a/src/components/Blockly/generator/webserver.js b/src/components/Blockly/generator/webserver.js index 804e98b..135b069 100644 --- a/src/components/Blockly/generator/webserver.js +++ b/src/components/Blockly/generator/webserver.js @@ -6,9 +6,8 @@ import Blockly from "blockly"; Blockly.Arduino.sensebox_initialize_http_server = function (block) { var box_id = this.getFieldValue("Port"); - Blockly.Arduino.libraries_["library_senseBoxMCU"] = - '#include "SenseBoxMCU.h"'; - Blockly.Arduino.libraries_["library_http"] = "#include .h>"; + Blockly.Arduino.libraries_["library_senseBoxIO"] = "#include "; + Blockly.Arduino.libraries_["library_http"] = "#include "; Blockly.Arduino.codeFunctions_["define_wifi_server"] = "WiFiServer server(" + box_id + ");";