1
1
#! groovy
2
2
def buildArduino (config , String buildFlags , String sketch , String key ) {
3
- def root = ' /opt/arduino-1.8.5 /'
3
+ def root = ' /opt/arduino-1.8.7 /'
4
4
if (config. nightly_arduino_ide)
5
5
{
6
6
root = ' /opt/arduino-nightly/'
@@ -50,6 +50,7 @@ def buildMySensorsMicro(config, sketches, String key) {
50
50
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
51
51
sketches[sketch]. path != config. library_root+ ' examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino' &&
52
52
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
53
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
53
54
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
54
55
sketches[sketch]. path != config. library_root+ ' examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino' ) {
55
56
buildArduino(config, fqbn, sketches[sketch]. path, key+ ' _MySensorsMicro' )
@@ -85,6 +86,7 @@ def buildMySensorsGw(config, sketches, String key) {
85
86
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
86
87
sketches[sketch]. path != config. library_root+ ' examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino' &&
87
88
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
89
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
88
90
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
89
91
sketches[sketch]. path != config. library_root+ ' examples/GatewaySerialRS485/GatewaySerialRS485.ino' &&
90
92
sketches[sketch]. path != config. library_root+ ' examples/MotionSensorRS485/MotionSensorRS485.ino' ) {
@@ -119,6 +121,7 @@ def buildArduinoUno(config, sketches, String key) {
119
121
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino' &&
120
122
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
121
123
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
124
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
122
125
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
123
126
sketches[sketch]. path != config. library_root+ ' examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino' ) {
124
127
buildArduino(config, fqbn, sketches[sketch]. path, key+ ' _ArduinoUno' )
@@ -152,6 +155,7 @@ def buildArduinoMega(config, sketches, String key) {
152
155
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino' &&
153
156
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
154
157
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
158
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
155
159
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
156
160
sketches[sketch]. path != config. library_root+ ' examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino' ) {
157
161
buildArduino(config, fqbn, sketches[sketch]. path, key+ ' _ArduinoMega' )
@@ -185,6 +189,7 @@ def buildSTM32F1(config, sketches, String key) {
185
189
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino' &&
186
190
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
187
191
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
192
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
188
193
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
189
194
sketches[sketch]. path != config. library_root+ ' examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino' ) {
190
195
buildArduino(config, fqbn, sketches[sketch]. path, key+ ' _STM32F1' )
@@ -210,7 +215,7 @@ def buildSTM32F1(config, sketches, String key) {
210
215
}
211
216
212
217
def buildESP8266 (config , sketches , String key ) {
213
- def fqbn = ' -fqbn=esp8266:esp8266:generic:CpuFrequency=80,ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=512K0,led=2,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200'
218
+ def fqbn = ' -fqbn=esp8266:esp8266:generic:CpuFrequency=80,VTable=flash, ResetMethod=ck,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=512K0,led=2,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200'
214
219
config. pr. setBuildStatus(config, ' PENDING' , ' Toll gate (ESP8266 - ' + key+ ' )' , ' Building...' , ' ${BUILD_URL}flowGraphTable/' )
215
220
try {
216
221
for (sketch = 0 ; sketch < sketches. size(); sketch++ ) {
@@ -222,6 +227,7 @@ def buildESP8266(config, sketches, String key) {
222
227
sketches[sketch]. path != config. library_root+ ' examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino' &&
223
228
sketches[sketch]. path != config. library_root+ ' examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino' &&
224
229
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
230
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
225
231
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
226
232
sketches[sketch]. path != config. library_root+ ' examples/MotionSensorRS485/MotionSensorRS485.ino' &&
227
233
sketches[sketch]. path != config. library_root+ ' examples/SensebenderGatewaySerial/SensebenderGatewaySerial.ino' &&
@@ -309,6 +315,7 @@ def buildnRF5(config, sketches, String key) {
309
315
sketches[sketch]. path != config. library_root+ ' examples/GatewayGSMMQTTClient/GatewayGSMMQTTClient.ino' &&
310
316
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP8266OTA/GatewayESP8266OTA.ino' &&
311
317
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32/GatewayESP32.ino' &&
318
+ sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32OTA/GatewayESP32OTA.ino' &&
312
319
sketches[sketch]. path != config. library_root+ ' examples/GatewayESP32MQTTClient/GatewayESP32MQTTClient.ino' &&
313
320
sketches[sketch]. path != config. library_root+ ' examples/GatewaySerialRS485/GatewaySerialRS485.ino' &&
314
321
sketches[sketch]. path != config. library_root+ ' examples/GatewayW5100/GatewayW5100.ino' &&
0 commit comments