Bug? mac address

Discussion in 'B4R Bugs & Wishlist' started by derez, Jun 3, 2018.

  1. derez

    derez Expert Licensed User

  2. Erel

    Erel Administrator Staff Member Licensed User

    I'm currently investigating this issue.
     
    derez likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

  4. derez

    derez Expert Licensed User

    It works. Still there is something strange. The installation ends with this:
    upload_2018-6-3_16-37-16.png

    and only after pressing the boards reset button I get it to run:

    upload_2018-6-3_16-38-13.png
     
  5. derez

    derez Expert Licensed User

    It works on the first installation with a short delay (at least 1500 msec) :
    Code:
    Private Sub AppStart
      Serial1.Initialize(
    115200)
      
    Log("AppStart")
      tmr.Initialize(
    "tmr_Tick",1500)
      tmr.Enabled = 
    True
    End Sub

    Sub tmr_Tick
        
    Log(bc.HexFromBytes(MacAddress))
        tmr.Enabled = 
    False
    End Sub
     
  6. derez

    derez Expert Licensed User

  7. Erel

    Erel Administrator Staff Member Licensed User

    You can use CallSubPlus for such delays (Delay will also work in this case).

    I don't think that it is related to the new version. Do you see it with all your devices?
     
  8. derez

    derez Expert Licensed User

    On two Wemos D1 - all the time, another - sometimes, Nodemcu - never.
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Try to add Delay(2000) at the beginning of your app.
     
  10. derez

    derez Expert Licensed User

    I don't know what happened but all 3 Wemos work correctly even without the delay...
    Lets forget it !
    There is no application involved except your code which I used to find the mac address.
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice