Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug hook to trace feeds #58

Open
brentru opened this issue Aug 10, 2018 · 0 comments
Open

Add debug hook to trace feeds #58

brentru opened this issue Aug 10, 2018 · 0 comments

Comments

@brentru
Copy link
Member

brentru commented Aug 10, 2018

Add virtual method to trace feeds

It would be nice if there was a virtual method that I could override by creating a subclass, where I could print out the name of the feed I had received, and the AdafruitIO_Data object I could display. It would be a convenient debugging hook. The default method would just have an empty body; I could subclass AdafruitIO_Group and override it. - https://forums.adafruit.com/viewtopic.php?f=56&t=139210

Proposed Method:

public:
    virtual void traceFeed(AdafruitIO_Data * d) {}

Implementation

class MyAdafruitIO_Group : public AdafruitIO_Group {
public:
    virtual void traceFeed(AdafruitIO_data * d) {
    Serial.println(d->feedName());
    ...maybe other stuff
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant