remove last mcu library includes
This commit is contained in:
parent
787d4058fc
commit
2cc4d9e84d
@ -59,7 +59,6 @@ Blockly.Arduino.sensebox_startap = function (block) {
|
|||||||
return code;
|
return code;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Blockly.Arduino.sensebox_ethernet = function () {
|
Blockly.Arduino.sensebox_ethernet = function () {
|
||||||
var ip = this.getFieldValue("ip");
|
var ip = this.getFieldValue("ip");
|
||||||
var gateway = this.getFieldValue("gateway");
|
var gateway = this.getFieldValue("gateway");
|
||||||
@ -68,8 +67,7 @@ Blockly.Arduino.sensebox_ethernet = function () {
|
|||||||
var mac = this.getFieldValue("mac");
|
var mac = this.getFieldValue("mac");
|
||||||
var dhcp = this.getFieldValue("dhcp");
|
var dhcp = this.getFieldValue("dhcp");
|
||||||
|
|
||||||
Blockly.Arduino.libraries_["library_senseBoxMCU"] =
|
Blockly.Arduino.libraries_["library_senseBoxIO"] = "#include <senseBoxIO.h>";
|
||||||
'#include "SenseBoxMCU.h"';
|
|
||||||
Blockly.Arduino.libraries_["library_ethernet"] = "#include <Ethernet.h>";
|
Blockly.Arduino.libraries_["library_ethernet"] = "#include <Ethernet.h>";
|
||||||
|
|
||||||
Blockly.Arduino.definitions_["ethernet_config"] = `
|
Blockly.Arduino.definitions_["ethernet_config"] = `
|
||||||
@ -111,4 +109,3 @@ Blockly.Arduino.sensebox_ethernetIp = function () {
|
|||||||
var code = "Ethernet.localIP()";
|
var code = "Ethernet.localIP()";
|
||||||
return [code, Blockly.Arduino.ORDER_ATOMIC];
|
return [code, Blockly.Arduino.ORDER_ATOMIC];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -6,9 +6,8 @@ import Blockly from "blockly";
|
|||||||
|
|
||||||
Blockly.Arduino.sensebox_initialize_http_server = function (block) {
|
Blockly.Arduino.sensebox_initialize_http_server = function (block) {
|
||||||
var box_id = this.getFieldValue("Port");
|
var box_id = this.getFieldValue("Port");
|
||||||
Blockly.Arduino.libraries_["library_senseBoxMCU"] =
|
Blockly.Arduino.libraries_["library_senseBoxIO"] = "#include <senseBoxIO.h>";
|
||||||
'#include "SenseBoxMCU.h"';
|
Blockly.Arduino.libraries_["library_http"] = "#include <WebUtil.h>";
|
||||||
Blockly.Arduino.libraries_["library_http"] = "#include .h>";
|
|
||||||
|
|
||||||
Blockly.Arduino.codeFunctions_["define_wifi_server"] =
|
Blockly.Arduino.codeFunctions_["define_wifi_server"] =
|
||||||
"WiFiServer server(" + box_id + ");";
|
"WiFiServer server(" + box_id + ");";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user