Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Wifi connection error

    Spresense
    2
    2
    742
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Indriyam last edited by

      I followed the post given in the following link:

      https://developer.sony.com/develop/spresense/tutorials-sample-projects/spresense-tutorials/how-to-equip-spresense-with-wifi-connectivity#tutorial-step-4

      However, in the TCP server example when I try to upload the code, it gives the following error:

      Arduino: 1.8.16 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
      
      <command-line>: error: expected identifier before numeric constant
      
      C:\Users\Admin\Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: in expansion of macro 'ESP8266'
      
         38 | class ESP8266 {
      
            |       ^~~~~~~
      
      <command-line>: error: expected unqualified-id before numeric constant
      
      C:\Users\Admin\Documents\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master/ESP8266.h:38:7: note: in expansion of macro 'ESP8266'
      
         38 | class ESP8266 {
      
            |       ^~~~~~~
      
      <command-line>: error: expected unqualified-id before numeric constant
      
      E:\College\IIST\Competetion\Codes\ESP\ESP_code1\TCPServer_ESP_Test\TCPServer_ESP_Test.ino:27:1: note: in expansion of macro 'ESP8266'
      
         27 | ESP8266 wifi;
      
            | ^~~~~~~
      
      E:\College\IIST\Competetion\Codes\ESP\ESP_code1\TCPServer_ESP_Test\TCPServer_ESP_Test.ino: In function 'void setup()':
      
      TCPServer_ESP_Test:34:5: error: 'wifi' was not declared in this scope
      
         34 |     wifi.begin(Serial2, 115200);
      
            |     ^~~~
      
      TCPServer_ESP_Test:34:16: error: 'Serial2' was not declared in this scope; did you mean 'Serial1'?
      
         34 |     wifi.begin(Serial2, 115200);
      
            |                ^~~~~~~
      
            |                Serial1
      
      E:\College\IIST\Competetion\Codes\ESP\ESP_code1\TCPServer_ESP_Test\TCPServer_ESP_Test.ino: In function 'void loop()':
      
      TCPServer_ESP_Test:78:20: error: 'wifi' was not declared in this scope
      
         78 |     uint32_t len = wifi.recv(&mux_id, buffer, sizeof(buffer), 100);
      
            |                    ^~~~
      
      exit status 1
      
      'wifi' was not declared in this scope
      
      
      
      

      Can someone help with this?

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Indriyam last edited by

        @indriyam said in Wifi connection error:

        Hello, Indriyam

        I believe you have the wrong board selected in your arduino IDE. Please go to Tools > Board > Spresense Boards and select Spresense.

        If this option is not available to you yet, please install the Spresense Arduino Library following the tutorial in this link: https://developer.sony.com/develop/spresense/docs/arduino_set_up_en.html#_install_spresense_arduino_library

        Let me know if your problem was solved after this or if you need further assistance.

        1 Reply Last reply Reply Quote
        • First post
          Last post
        Developer World
        Copyright © 2021 Sony Group Corporation. All rights reserved.
        • Contact us
        • Legal