Search this site
Embedded Files
亞魯的實體教室
  • MicroPython on the ESP32 with Wokwi Simulator
  • MicroPython on the ESP32
    • ESP32 exercise
  • Project
    • AIoT traffic safety system
    • Computer Vision
  • 演算法
    • 排序
  • App inventor
    • AI2前置作業
    • 個人名片Resume APP
    • 以google sheet為查詢資料庫
    • 最大、最小值、平均值及AI Chatbot
    • 上傳ThingSpeak及line notify
  • AI人工智慧
    • M5stack UnitV2視覺辨識
    • SU-03T語音辨識
    • 用AI加速學習
    • wake word喚醒詞
  • ESP32-IoT
    • MQTT publish
    • MQTT subscribe
    • MQTT subscribe by Cyberpi
    • Google sheet
    • ThingSpeak
    • Line Notify
    • IFTTT
    • Mesh LAN (halocode with Cyberpi)
  • ESP32-BunHMI
    • BunHMI前置作業
    • Label
  • ESP32-CAM with Thonny
    • ESP32 CAM前置作業
    • 內建閃光燈
  • ESP32 with Thonny
    • ESP32前置作業
    • LED按鈕
    • I2C LCD
    • DHT11
    • Relay
    • I2C LCD顯示DHT11
    • PIR與ISD1820錄放音模組
    • Ultrasonic
    • LDR
    • PIR
    • Vibration
    • Ultra sonic、Servo、Led and Relay
    • 連線mqtt與google sheet進行pir、servo與buzzer控制
    • Automatic watering by soil moisture
  • ESP32-BlocklyDuino
    • LED I
    • LED II
    • Photoresistor
    • OTTO GO
  • ESP32-M5STACK
    • LINE Notify by ultrasonic
    • LINE Notify by RFID
    • watering and MQTT
    • RFID and MQTT
    • Firebase by ENVIII
    • Inventory Management by AI2、 google sheet and MQTT
    • Blynk by ENVIII
  • Python
    • projects
    • LeetCode
    • Course
  • Scratch
    • Scratch exercise
  • 關於
  • 自主學習|Self-directed Learning
  • 學生作品| student's project
    • apcs
亞魯的實體教室
  • MicroPython on the ESP32 with Wokwi Simulator
  • MicroPython on the ESP32
    • ESP32 exercise
  • Project
    • AIoT traffic safety system
    • Computer Vision
  • 演算法
    • 排序
  • App inventor
    • AI2前置作業
    • 個人名片Resume APP
    • 以google sheet為查詢資料庫
    • 最大、最小值、平均值及AI Chatbot
    • 上傳ThingSpeak及line notify
  • AI人工智慧
    • M5stack UnitV2視覺辨識
    • SU-03T語音辨識
    • 用AI加速學習
    • wake word喚醒詞
  • ESP32-IoT
    • MQTT publish
    • MQTT subscribe
    • MQTT subscribe by Cyberpi
    • Google sheet
    • ThingSpeak
    • Line Notify
    • IFTTT
    • Mesh LAN (halocode with Cyberpi)
  • ESP32-BunHMI
    • BunHMI前置作業
    • Label
  • ESP32-CAM with Thonny
    • ESP32 CAM前置作業
    • 內建閃光燈
  • ESP32 with Thonny
    • ESP32前置作業
    • LED按鈕
    • I2C LCD
    • DHT11
    • Relay
    • I2C LCD顯示DHT11
    • PIR與ISD1820錄放音模組
    • Ultrasonic
    • LDR
    • PIR
    • Vibration
    • Ultra sonic、Servo、Led and Relay
    • 連線mqtt與google sheet進行pir、servo與buzzer控制
    • Automatic watering by soil moisture
  • ESP32-BlocklyDuino
    • LED I
    • LED II
    • Photoresistor
    • OTTO GO
  • ESP32-M5STACK
    • LINE Notify by ultrasonic
    • LINE Notify by RFID
    • watering and MQTT
    • RFID and MQTT
    • Firebase by ENVIII
    • Inventory Management by AI2、 google sheet and MQTT
    • Blynk by ENVIII
  • Python
    • projects
    • LeetCode
    • Course
  • Scratch
    • Scratch exercise
  • 關於
  • 自主學習|Self-directed Learning
  • 學生作品| student's project
    • apcs
  • More
    • MicroPython on the ESP32 with Wokwi Simulator
    • MicroPython on the ESP32
      • ESP32 exercise
    • Project
      • AIoT traffic safety system
      • Computer Vision
    • 演算法
      • 排序
    • App inventor
      • AI2前置作業
      • 個人名片Resume APP
      • 以google sheet為查詢資料庫
      • 最大、最小值、平均值及AI Chatbot
      • 上傳ThingSpeak及line notify
    • AI人工智慧
      • M5stack UnitV2視覺辨識
      • SU-03T語音辨識
      • 用AI加速學習
      • wake word喚醒詞
    • ESP32-IoT
      • MQTT publish
      • MQTT subscribe
      • MQTT subscribe by Cyberpi
      • Google sheet
      • ThingSpeak
      • Line Notify
      • IFTTT
      • Mesh LAN (halocode with Cyberpi)
    • ESP32-BunHMI
      • BunHMI前置作業
      • Label
    • ESP32-CAM with Thonny
      • ESP32 CAM前置作業
      • 內建閃光燈
    • ESP32 with Thonny
      • ESP32前置作業
      • LED按鈕
      • I2C LCD
      • DHT11
      • Relay
      • I2C LCD顯示DHT11
      • PIR與ISD1820錄放音模組
      • Ultrasonic
      • LDR
      • PIR
      • Vibration
      • Ultra sonic、Servo、Led and Relay
      • 連線mqtt與google sheet進行pir、servo與buzzer控制
      • Automatic watering by soil moisture
    • ESP32-BlocklyDuino
      • LED I
      • LED II
      • Photoresistor
      • OTTO GO
    • ESP32-M5STACK
      • LINE Notify by ultrasonic
      • LINE Notify by RFID
      • watering and MQTT
      • RFID and MQTT
      • Firebase by ENVIII
      • Inventory Management by AI2、 google sheet and MQTT
      • Blynk by ENVIII
    • Python
      • projects
      • LeetCode
      • Course
    • Scratch
      • Scratch exercise
    • 關於
    • 自主學習|Self-directed Learning
    • 學生作品| student's project
      • apcs

Mesh Lan 

(halocode with Cyberpi)

參考資料:Mesh LAN (to be implemented)

  • Creates a LAN

    • cyberpi.mesh.set(name = "mesh1")

  • Joins a LAN

    • cyberpi.mesh.join(name = "mesh1")

  • Sends a LAN broadcast message with a value

    • cyberpi.mesh_broadcast.set(message, val)

  • Obtains the value in the received broadcast message

    • cyberpi.mesh_broadcast.get(message)

  • Listens to mesh broadcast messages and executes the subsequent code when a broadcast message is received

    • cyberpi.event.mesh_broadcast(message)

操作步驟:

  1. halocode:正常使用區域網路積木, 預設值mesh1即可, 範例中啟動設定亮彩色燈,按下發送mesh,設定接收到mesh後綠燈。

  2. cyberpi:除了創建跟加入mesh需手動設定外,其它接收發送可以使用積木建立,按下A發送mesh,設定接收到mesh後綠燈。

註1:這種連線方式不需要另外設定wifi。

註2:如果使用mesh或是雲訊息時,要注意變數傳遞的問題,建議變數傳遞單純寫在函式中為佳。(測試時遇到雲訊息無法傳遞變數。)

Python code:cyberpi

Python code:halocode

註:彩虹燈後面的code就不貼了

Google Sites
Report abuse
Page details
Page updated
Google Sites
Report abuse