• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

esp32-esp8266-web-server-physical-button

Q&A Forum › Category: Arduino › esp32-esp8266-web-server-physical-button
0 Vote Up Vote Down
Larry asked 2 years ago

     Decided to try one more time with VS/PlatformIo, must have something to do with the way code is written using it on a Mac but not sure. I copied your code using the raw copy and loaded all libraries that was needed. I get an error on line 100
“outputState”was not declared in this scope line [100 col , 31]
 

,

Question Tags: platformio
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
What code are you using exactly?
In VS Code all function declarations must be made before the function call.
You need to move all user-defined functions to a place before the setup().
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
Larry answered 2 years ago

So I basically move line 100 then , thanks. 

0 Vote Up Vote Down
Larry answered 2 years ago

So I basically move line 100 then , thanks. 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.