B4R Question How to Run AT command from NodeMCU

Discussion in 'B4R Questions' started by AndroidMadhu, Jun 2, 2019.

  1. AndroidMadhu

    AndroidMadhu Active Member Licensed User

    Hello All,

    I want to run AT command from NodeMCU from Arduino Serial Monitor.
    I have updated all the library as per the post from Erel.
    https://www.b4x.com/android/forum/threads/esp8266-getting-started.68740/

    I performed he below activities

    1. Connected 3.3 pin from Arduino UNO to NodeCU 3.3V
    2. GND from Arduino UNO to GND of NodeMCU
    3. RX of Arduino UNO[Pin0] to TX of NodeMCU
    4. TX of Arduino UNO[Pin1] to RX of NodeMCU.
    5. Connect Arduino Board to the Computer with USB cable
    6. Select the Port and Start the serial Monitor on COM port 8. [From Arduino IDE]
    7. Run AT
    But nothing is coming. Also for the NodeMCU is not blinking its blue light.
    Am I missing something? Do I need to update the NodeMCU firmware for AT commands?

    Please advice.....
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I'm not 100% sure but I think that the AT interpreter is removed once you run a program. What do you need it for?
     
  3. AndroidMadhu

    AndroidMadhu Active Member Licensed User

    Actually I wanted to send any number (For test purpose) to my webpage like "http://IoT/somepage.com"
    I thought to use AT commands to send the number using nodeMCU to the above webpage. Is that the correct approach?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

  5. AndroidMadhu

    AndroidMadhu Active Member Licensed User

    @Erel,

    Thanks for your advice. I read the above link.
    But if I want to check what are all the available Wi-fi networks available in my surroundings, how to check that using B4r?
    Like in AT command I can use
    Code:
    AT+CWMODE=1
    May be my question is like novice, but I want to clear my concept.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

  7. AndroidMadhu

    AndroidMadhu Active Member Licensed User

    @Erel,
    Thanks @Erel... I checked the link.
    I have used the scan networks procedure. It works fine with one issue.
    While at the log I found that the available network is found successfully but the "IP is unset".

    Code:
    Found: 2 networks.
    SAYAN
    (IP unset)
    Madhu     <==== This 
    is my Network
    (IP unset)
    Is this is the reason because of the Dynamic IP address [I mean to say in the IPV4 the option chosen is : Obtain the IP address Automatically]???
     
  8. AndroidMadhu

    AndroidMadhu Active Member Licensed User

    Yes...... I have connected successfully!!!! I am able to connect to my router and I can successfully able to obtain my IP address


    Code:
    Connected Successfully!!
    My IP : 
    192.168.xx.xxx
     
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