Skip to content

Problem in Send command not respecting the timeout expectation #8

Open
@disk91

Description

@disk91

In code, you have timeout set for 10.000 ms or 60.000ms but in the loop you have 100ms loop
and you only divide timeout per 10. So your timeout is 10x what is needed

for (i = 0; i < timeout/10; i++)  <= This is a 10ms step ... not 100ms
  {
    if (digitalRead(interrupt_pin) == 0) {
      status();
      ret = statusCode(SIGFOX);
      break;
    } else {
      // THIS IS A 100ms loop
      digitalWrite(led_pin, HIGH);
      delay(50);
      digitalWrite(led_pin, LOW);
      delay(50);
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions