Notifications
Clear all

[Solved] Need a tiny bit of C++ help

Page 2 / 2

Ron
 Ron
(@zander)
Noble Member
Joined: 2 years ago
Posts: 2262
Topic starter  

@frogandtoad Here is the 'path'

thingProperties.h has an include for 

ArduinoIoTCloud.h which has an include for 

property/PropertyContainer.h which has an include for 

types/CloudSchedule.h

Just a dogged stubborness plus a great search tool (Mac FilesFinder) 

Since Win now has a lot/most of *nix capabilities like the Mac, I think I remember a *nix way to do that search as well, some sort of find matching files | search for matching string. Sorry, my memory is not so good now for details but I am confident it can be done. For Mac it's terminal then *nix commands, for Win I forget it's been a few years but whatever the current incarnation of dosbox or command prompt will do it.

It is considered poor judgement to traverse a chasm in 2 leaps.


ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 3 years ago
Posts: 1213
 

@zander

Posted by: @zander

@frogandtoad I often use the Mac search tool to look for files (may be more powerful than windows, but try terminal then find on Win. Use man find for reams of doc'n. Yup, Win does *nix now, for a while) and found it.

Documentation is a sore point. I asked here, and on the arduino forum with almost no responses, I actually got more here. I am currently trying to get API info for the Alexa features but no response from the arduino forum.

As you likely know the arduino IDE and even the CLI 'hide' a lot of what is happening under the covers AND modern compilers no longer exact a price for including unneeded 'stuff'. When I first saw that the compiler actually compiled the library source almost every time I was more than a little surprised. Even back in the early days of DOS and make we knew how to check if the source had been modified so did or didn't need to be recompiled. It does sometimes NOT recompile 'core' elements, but it more often than not does re-compile. 

Anyway because I 'knew' that I made the rash assumption that a relevant clue yielding header file was likely on my drive so I hauled out my handy dandy file searcher and text matcher tool and started chasing the clues. See screen shots for results of a search.

Screen Shot 2022 05 15 at 07.49.08
Screen Shot 2022 05 15 at 08.05.38
Screen Shot 2022 05 15 at 08.05.15

 

Interesting... I must have missed it somewhere along the line, but I didn't see anywhere that I had to install a local Arduino library for the cloud.  Anyway, I found a library (linked below), and in fact, it has a good example of a schedule (and others) in it that may interest you:

ArduinoIoTCloud Libraries

...and also found and API reference, but haven't really looked through it yet - Time for some sleep!

Arduino IoT Cloud API


ReplyQuote
Ron
 Ron
(@zander)
Noble Member
Joined: 2 years ago
Posts: 2262
Topic starter  

@frogandtoad That is in fact the library I have installed. NOT required but I wanted local ability and samples. It is the Schedule example I used to build mine.

The API link I have seen and don't see anything of help.

It is considered poor judgement to traverse a chasm in 2 leaps.


ReplyQuote
frogandtoad
(@frogandtoad)
Noble Member
Joined: 3 years ago
Posts: 1213
 

@zander

Posted by: @zander

@frogandtoad That is in fact the library I have installed. NOT required but I wanted local ability and samples. It is the Schedule example I used to build mine.

The API link I have seen and don't see anything of help.

Cool bananas 🙂

Just like to add, that the Arduino documentation (especially for cloud related programs), is absolute rubbish!

Cheers


ReplyQuote
Ron
 Ron
(@zander)
Noble Member
Joined: 2 years ago
Posts: 2262
Topic starter  

@frogandtoad You sir are far too generous. They only wish they were as good as rubbish.

It is considered poor judgement to traverse a chasm in 2 leaps.


ReplyQuote
Page 2 / 2