LoRa, MQTT and Oled
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
# Configuration des ports (À remplacer par tes propres chemins by-id)
|
||||
# Pour trouver tes chemins, branche tes ESP et tape : ls -l /dev/serial/by-id/
|
||||
PORT_ESP_WIFI="/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0"
|
||||
PORT_ESP_LORA="/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0002-if00-port0"
|
||||
PORT_ESP_WIFI="/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port1"
|
||||
PORT_ESP_LORA="/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0"
|
||||
# Ajoute les autres si besoin...
|
||||
|
||||
# Configuration Raspberry Pi
|
||||
RPI_HOST="10.85.213.190"
|
||||
RPI_HOST="192.168.50.1"
|
||||
RPI_USER="pi"
|
||||
RPI_DEST="/home/pi/SmartWave"
|
||||
RPI_SYSTEMD_SERVICE="smartwave.service"
|
||||
@@ -44,10 +44,10 @@ deploy_to_esp() {
|
||||
mpremote connect "$PORT" cp -r "$TARGET_DIR"/* :
|
||||
|
||||
echo "📦 Copie des certificats MQTT..."
|
||||
mpremote connect "$PORT" cp -r orchestrateur/mqtt/certs :certs
|
||||
mpremote connect "$PORT" cp -r orchestrateur/mqtt/certs/ :
|
||||
|
||||
echo "🔄 Redémarrage de l'ESP..."
|
||||
mpremote connect "$PORT" soft-reset
|
||||
mpremote connect "$PORT" reset
|
||||
|
||||
echo "✅ [$NAME] mis à jour avec succès !"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user