BUG? Interval does not sent in some cases

Do anyone faced that homey does not send interval?

mySignal.tx([0,0,3,2,2,0,1,2,1,0]);

{
“sof”: [
162,162,162,162
],
“eof”: [
162,162
],
“words”: [
[
162,162,162,162
],
[
162,162,325,325
],
[
325,325,162,162
],
[
325,325
]
],
“interval”: 560,
“sensitivity”: 0.5,
“repetitions”: 128,
“minimalLength”: 10,
“maximalLength”: 10
}

! Interval has not been sent !

560 interval added to the end of frame:

{
“sof”: [
162,162,162,162
],
“eof”: [
162,162,560
],
“words”: [
[
162,162,162,162
],
[
162,162,325,325
],
[
325,325,162,162
],
[
325,325
]
],
“interval”: 560,
“sensitivity”: 0.5,
“repetitions”: 128,
“minimalLength”: 10,
“maximalLength”: 10
}

! interval sent !

Checking your code with https://jsonlint.com/
gives the comment:

image

can it be that the Quote signs have to be like 'sof' and not “sof” ?

If the actual JSON were invalid the app wouldn’t run at all :stuck_out_tongue:

1 Like

There is no problem with the JSON, app runs, attached signal is recorded by an oscilloscope, so Homey transmits the data, just avoid interval…

1 Like