Use released NimBLE-Arduino
This commit is contained in:
parent
8d233a3d68
commit
738238ee91
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env python
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
#this list contains array of esp32 clients,
|
||||
# and each client contains mDNS name and the path to .bin file
|
||||
#I only have 1 ESP so I duplicate mDNS entry for testing
|
||||
esps = [
|
||||
#mDNS name of ESP #path to ".bin" file
|
||||
['192.168.128.85', 'm5atom-matrix'],
|
||||
['192.168.128.172', 'm5atom-matrix'],
|
||||
['192.168.128.159', 'm5atom-matrix'],
|
||||
['192.168.128.64', 'm5atom-matrix'],
|
||||
['192.168.128.113', 'macchina-a0'],
|
||||
]
|
||||
esp_respond_sender_port = '3232'
|
||||
sender_to_esp_port = '3232'
|
||||
|
||||
cmd = 'pio run -e m5atom-matrix -e macchina-a0'
|
||||
p = subprocess.call(cmd, shell=True)
|
||||
|
||||
for esp in esps:
|
||||
cmd = 'python3 ~/.platformio/packages/framework-arduinoespressif32/tools/espota.py -i '+esp[0]+' -p '+sender_to_esp_port+' -P '+esp_respond_sender_port+' -f .pio/build/'+esp[1]+'/firmware.bin'
|
||||
print (cmd)
|
||||
p = subprocess.call(cmd, shell=True)
|
|
@ -19,7 +19,7 @@ lib_deps_external =
|
|||
marvinroger/AsyncMqttClient@^0.9.0
|
||||
bblanchon/ArduinoJson@^6.17.3
|
||||
https://github.com/ESPresense/ESP-WiFiSettings.git
|
||||
https://github.com/h2zero/NimBLE-Arduino#6dbb656
|
||||
h2zero/NimBLE-Arduino@^1.3.7
|
||||
bbx10/DNSServer@^1.1.0
|
||||
build_flags =
|
||||
-D CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
|
||||
|
|
Loading…
Reference in New Issue