Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Vera
  4. Error Compiling Ethernet Gateway

Error Compiling Ethernet Gateway

Scheduled Pinned Locked Moved Vera
12 Posts 4 Posters 7.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    clippermiami
    Hero Member
    wrote on last edited by
    #1

    Please bear with me, i'm new to Arduino.

    I'm trying to compile the EthernetGateway sketch having made the changes for my IP address and Port. I get the following error:
    'IPAddress' does not name a type

    Per the instructions I'm trying to change the IP address and port to:
    #define IP_PORT 5001 // The port you want to open
    IPAddress myIp (192, 168, 15, 118; // Configure your static ip here

    H 1 Reply Last reply
    0
    • C clippermiami

      Please bear with me, i'm new to Arduino.

      I'm trying to compile the EthernetGateway sketch having made the changes for my IP address and Port. I get the following error:
      'IPAddress' does not name a type

      Per the instructions I'm trying to change the IP address and port to:
      #define IP_PORT 5001 // The port you want to open
      IPAddress myIp (192, 168, 15, 118; // Configure your static ip here

      H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      @clippermiami

      There is a missing end-parantesis in your posted example.

      IPAddress myIp (192, 168, 15, 118**)**;

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clippermiami
        Hero Member
        wrote on last edited by
        #3

        Well, Duh :-)

        C 1 Reply Last reply
        0
        • C clippermiami

          Well, Duh :-)

          C Offline
          C Offline
          clippermiami
          Hero Member
          wrote on last edited by
          #4

          @clippermiami
          That was a copy/paste error --- the actual line was and is:

          #define IP_PORT          5001  // The port you want to open 20140404 JRS
          IPAddress myIp (192, 168, 15, 118);  // Configure your static ip-address here 20140404 JRS
          

          And I still get the error in compile IPAddress does not name a type

          This is the Ethernet Gateway code as downloaded from the site, the only change is to substitute the port number and the IP address fields

          H 1 Reply Last reply
          0
          • C clippermiami

            @clippermiami
            That was a copy/paste error --- the actual line was and is:

            #define IP_PORT          5001  // The port you want to open 20140404 JRS
            IPAddress myIp (192, 168, 15, 118);  // Configure your static ip-address here 20140404 JRS
            

            And I still get the error in compile IPAddress does not name a type

            This is the Ethernet Gateway code as downloaded from the site, the only change is to substitute the port number and the IP address fields

            H Offline
            H Offline
            hek
            Admin
            wrote on last edited by
            #5

            @clippermiami

            Are you using the ENC-module or WizNet?

            If ENC, Try removing the src-folder from the UIPEthernet-library.

            C 1 Reply Last reply
            0
            • H hek

              @clippermiami

              Are you using the ENC-module or WizNet?

              If ENC, Try removing the src-folder from the UIPEthernet-library.

              C Offline
              C Offline
              clippermiami
              Hero Member
              wrote on last edited by
              #6

              @hek
              The ENC module so i'll try your suggestion today and reply when I have results

              1 Reply Last reply
              0
              • C Offline
                C Offline
                clippermiami
                Hero Member
                wrote on last edited by
                #7

                UIPEthernet

                I removed the "src" folder and still got the same error "IPAddress does not name a type"

                #define IP_PORT 5001 // The port you want to open
                IPAddress myIp (192, 168, 015, 118); // Configure your static ip-address here

                H 1 Reply Last reply
                0
                • C clippermiami

                  UIPEthernet

                  I removed the "src" folder and still got the same error "IPAddress does not name a type"

                  #define IP_PORT 5001 // The port you want to open
                  IPAddress myIp (192, 168, 015, 118); // Configure your static ip-address here

                  H Offline
                  H Offline
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  IPAddress does not name a type

                  @clippermiami

                  You must have done something wrong when installing the libraries. It works fine for me.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    clippermiami
                    Hero Member
                    wrote on last edited by
                    #9

                    Well, I'll reinstall then and get back to you. Thanks

                    T 1 Reply Last reply
                    0
                    • C clippermiami

                      Well, I'll reinstall then and get back to you. Thanks

                      T Offline
                      T Offline
                      tigra
                      wrote on last edited by tigra
                      #10

                      @clippermiami I had the same issue when the libraries weren't in place. See the steps at: http://www.mysensors.org/build/arduino

                      C 1 Reply Last reply
                      0
                      • T tigra

                        @clippermiami I had the same issue when the libraries weren't in place. See the steps at: http://www.mysensors.org/build/arduino

                        C Offline
                        C Offline
                        clippermiami
                        Hero Member
                        wrote on last edited by
                        #11

                        @tigra I got it working and in my excitement I forgot to follow up here. :)

                        I don't have the Ethernet Gateway working but the Serial one is running along with a single DHT sensor for now so I'm happy :)

                        john

                        ? 1 Reply Last reply
                        0
                        • C clippermiami

                          @tigra I got it working and in my excitement I forgot to follow up here. :)

                          I don't have the Ethernet Gateway working but the Serial one is running along with a single DHT sensor for now so I'm happy :)

                          john

                          ? Offline
                          ? Offline
                          A Former User
                          wrote on last edited by
                          #12

                          does someone solved this fault also for Ethernet Gateway? While trying to adapt Sensebender Gateway to Ethernet, I get following messages:
                          error: 'IPAddress' does not name a type IPAddress _ethernetGatewayIP(MY_IP_ADDRESS);
                          error: 'EthernetServer' does not name a type
                          EthernetServer _ethernetServer(_ethernetGatewayPort);

                          followed by some more, expected to result from the above mentioned.

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          13

                          Online

                          12.0k

                          Users

                          11.2k

                          Topics

                          113.4k

                          Posts


                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • MySensors
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular