Skip to content

subscribe with Berry #22949

Closed Answered by timtimsson
timtimsson asked this question in Q&A
Feb 4, 2025 · 1 comments · 21 replies
Discussion options

You must be logged in to vote

omg in works with retain and without json

mqtt.subscribe('ESP32_M5_01/stat/POWER3',
  def (topic, idx, payload, bin)
    var power3 = payload
    p1b22.text = f'POWER3 {power3}' 
    p1b22.val = (power3 == "ON") 
  end)

Replies: 1 comment 21 replies

Comment options

You must be logged in to vote
21 replies
@timtimsson
Comment options

@sfromis
Comment options

@timtimsson
Comment options

@timtimsson
Comment options

Answer selected by timtimsson
@sfromis
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants