So I am attempting the ESP IOT App , firebase project. I am at the part to send data to the database , page 54 , all went well up to this point. Now as I go through the tutorial i have 6 errors that I am not able to get past . I edited the scrip as instructed and got the errors, thinking that I may not have done something incorrect i actuall cut and paste the script , then added my credentials and still got theses errors.
‘sendData’ was not declared in this scope
identifier “sendData” is undefined
[{
“resource”: “/c:/Users/HP/Documents/PlatformIO/Projects/Monday_test/src/main.cpp”,
“owner”: “cpp”,
“severity”: 8,
“message”: “expected ‘)’ before ‘PrevMillis'”,
“startLineNumber”: 123,
“startColumn”: 81,
“endLineNumber”: 123,
“endColumn”: 81
}]
[{
“resource”: “/c:/Users/HP/Documents/PlatformIO/Projects/Monday_test/src/main.cpp”,
“owner”: “C/C++”,
“code”: “18”,
“severity”: 8,
“message”: “expected a ‘)'”,
“source”: “C/C++”,
“startLineNumber”: 124,
“startColumn”: 1,
“endLineNumber”: 124,
“endColumn”: 11
}]
[{
“resource”: “/c:/Users/HP/Documents/PlatformIO/Projects/Monday_test/src/main.cpp”,
“owner”: “cpp”,
“severity”: 8,
“message”: “expected ‘)’ before ‘}’ token”,
“startLineNumber”: 134,
“startColumn”: 3,
“endLineNumber”: 134,
“endColumn”: 3
}]
[{
“resource”: “/c:/Users/HP/Documents/PlatformIO/Projects/Monday_test/src/main.cpp”,
“owner”: “cpp”,
“severity”: 8,
“message”: “expected primary-expression before ‘}'”,
“startLineNumber”: 135,
“startColumn”: 1,
“endLineNumber”: 135,
“endColumn”: 1
}]
Hi.
How are you copying the code? Please don’t copy from the PDF because it can mess up with formatting causing unexpected errors.
Copy the code using the links provided at the beginning of the unit.
What is the line of code that is causing the error?
Regards,
Sara
Yes I should have realized that, thought about that the next day because I was working on it late. I will go over it again and use the links provided. Thanks
So , now that I have used the file from the resources, my issues have been resolved. Only one now is in Platform IO monitor is stuck on getting UID , reset the switch a few times, my User info is correct and I checked my internet connection and information and it is also correct.
Hi.
So, is everything working as expected now or are you still having issues? I didn’t understand…
Regards,
Sara
I am sure it’s something I am missing, I am new to VS code platform IO so I really need to work on this more before I ask for any further help, thanks for your support.
I am sure it’s something I am missing, I am new to VS code platform IO so I really need to work on this more before I ask for any further help, thanks for your support.
Ok.
Meanwhile, I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara