fix wifi, add pydev

This commit is contained in:
Wolfgang Hottgenroth 2017-11-27 16:24:27 +01:00
parent 39f75d6906
commit 57b5d02f1e
3 changed files with 12 additions and 0 deletions

View File

@ -5,6 +5,11 @@
<projects> <projects>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand> <buildCommand>
<name>io.sloeber.core.inoToCpp</name> <name>io.sloeber.core.inoToCpp</name>
<arguments> <arguments>
@ -29,6 +34,7 @@
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
<nature>io.sloeber.arduinonature</nature> <nature>io.sloeber.arduinonature</nature>
<nature>org.python.pydev.pythonNature</nature>
</natures> </natures>
<linkedResources> <linkedResources>
<link> <link>

5
.pydevproject Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?><pydev_project>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
</pydev_project>

View File

@ -30,6 +30,7 @@ extern uint32_t startTime;
void setup_wifi() { void setup_wifi() {
delay(10); delay(10);
WiFi.mode(WIFI_STA);
// We start by connecting to a WiFi network // We start by connecting to a WiFi network
#ifdef DEBUG #ifdef DEBUG