Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

sendToChannel #48

Description

@unregistered33

Thanks for library! One problem. sendToChannel works only one time.
`void loop()
.....
if ((millis() - temp_start) > 30000)
{
temp_start = millis();
tm* _tm;
time_t utcTime = time(NULL);
_tm = localtime(&utcTime);

    String str;
    char buf[100];
    strftime(buf, sizeof(buf), "This is esp32 message at:  %A, %B %d %Y %H:%M:%S", _tm);
    str = buf;
    Serial.println(str); //see it every 30 sec
    myBot.sendToChannel(channel_id, str, true);//see it only first time in my channel and in serial log
}

....
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions