# Path: mqtt_as/config.py
# def ledfunc(pin):
#     def func(v):
# def ledfunc(led, init):
#     def func(v):


from sys import platform
from mqtt_as import config
    from machine import Pin
    from pyb import LED
# config.py Local configuration for mqtt_as demo programs.

config['server'] = '192.168.0.10'  # Change to suit
# config['server'] = 'iot.eclipse.org'

# Not needed if you're only using ESP8266
config['ssid'] = 'misspiggy'
config['wifi_pw'] = '6163VMiqSTyx'

# For demos ensure same calling convention for LED's on all platforms.
# ESP8266 Feather Huzzah reference board has active low LED's on pins 0 and 2.
# ESP32 is assumed to have user supplied active low LED's on same pins.
# Call with blue_led(True) to light

if platform == 'esp8266' or platform == 'esp32':
    def ledfunc(pin):
        pin = pin

# Path: mqtt_as/config.py
# def ledfunc(pin):
#     def func(v):
# def ledfunc(led, init):
#     def func(v):


# Path: mqtt_as/config.py
from sys import platform
from mqtt_as import config
    from machine import Pin
    from pyb import LED

# config.py Local configuration for mqtt_as demo programs.

config['server'] = '192.168.0.10'  # Change to suit
# config['server'] = 'iot.eclipse.org'

# Not needed if you're only using ESP8266
config['ssid'] = 'misspiggy'
config['wifi_pw'] = '6163VMiqSTyx'

# For demos ensure same calling convention for LED's on all platforms.
# ESP8266 Feather Huzzah reference board has active low LED's on pins 0 and 2.
# ESP32 is assumed to have user supplied active low LED's on same pins.
# Call with blue_led(True) to light

if platform == 'esp8266' or platform == 'esp32':
    def ledfunc(pin):
        pin = pin

        def func(v):