New firmware release 1.6.7.b1 (LoRaWAN Nano Gateway with TTN example!!)

  • I am not sure why there is no response to this problem... previously posted, so here it is again.
    Am I the only trying to do this, or I am missing something obvious...?

    Is is possible to change SSID of wipi in AP mode?


    import machine
    import os
    import pycom


    uart = machine.UART(0, 115200) # disable these two lines if you don't want serial access

    from network import WLAN
    wl = WLAN()

    #trying to change AP properties:

    original_ssid = "MyNode"

    original_auth = (3,'bewell')

    wl.init(mode=WLAN.AP, ssid=original_ssid, auth=original_auth, channel=6, antenna=WLAN.INT_ANT)

    Does not change SSID visible on my iphone.
    It remains wipy-wlan-xxx
    Am I doing something wrong?

    Or SSID is hardcoded regardless of what says in documentation:

    Get or set the SSID when in AP mode.

  • Wow, great development! :-) This is A LOT better than my simple gateway code, well done Pycom team. This will now run permanently on one of my LoPys.

    Just a suggestion, there is a convention for Gateway IDs on TTN, they're usually the first 3 bytes of MAC address + FFFE + last 3 bytes of MAC address, so I added the following to

    import machine
    import binascii
    CONVENTIONAL_EUI = binascii.hexlify(machine.unique_id()).upper()
    # Set Gateway ID to the first 3 bytes of MAC address + 'FFFE' +  last 3 bytes of MAC address 
    # Alternatively uncomment and change this to your fixed Gateway EUI
    # GATEWAY_ID = '11aa334455bb7788'

  • @this-wiederkehr sorry, we haven't pushed the latest docs. There's a new method called stats, try:


    Which returns a namedtuple that contais the rssi, snr and other usefult data (from the last received packet).


  • lora.rssi() is missing at least since 1.6.6.b1... could you fix please?

    ah. for anyone wondering lora.rssi() seems to be deprecated in favor of lora.stats() this will output something like:

    (timestamp=1502245986, rssi=-39, snr=29, sf=7)

    documentation is as usual outdated...

  • Exciting to see this finally released! :D Let us know if you deploy your LoPy as a TTN (or other) Nano Gateway - would be cool to see it in use!

  • @daniel thx, you can avoid autolinking from *.py files by escape them as inline code

    Inline `` has `back-ticks around` it.
    Inline has back-ticks around it.

    see the Markdown doc e.g. under

  • @Clemens thanks. It was never my intention to create Hyperlinks, I just wanted to have then in bold, but somehow the forum treats then as such because of the .py extension, so I have removed that now.

  • Hi @daniel congrats about success :)

    I do not have Lopy and i am interested if this release have something releated to Wipy2 too?

  • @daniel amazing news! lopy weekend, just in time!

  • I'll definitely try it as soon as possible !

  • @daniel your links, and point to ... can you link to the git file or delete the hyperlink reference

  • @simonc thanks! :-)

  • @daniel Wow - congratulations - I think this is a great accomplishment and use case for LoPys!

Log in to reply

Pycom on Twitter