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

AC114 Remote Replay #280

Closed
daaaaan opened this issue Mar 6, 2019 · 1 comment
Closed

AC114 Remote Replay #280

daaaaan opened this issue Mar 6, 2019 · 1 comment

Comments

@daaaaan
Copy link

daaaaan commented Mar 6, 2019

Hi,

Not a library issue as such, more a keyboard/screen interface problem...

This is based on work from issue #163 where I am trying to compile a simple program to replay the codes I've captured from my AC114 remote.

I'm running into this issue, having followed the advice from @Martin-Laclaustra, using his protocolllessreceiver branch of his fork, and changed out the RCSWITCH_MAX_CHANGES to 150.

My hardware is a RPI zero.

My code is as follows.

#include "rc-switch/RCSwitch.h"

RCSwitch mySwitch = RCSwitch();

unsigned int data[]   = {5220,5220,.....,0}

void setup() {
  mySwitch.enableTransmit(10);  
}

void loop() {
  mySwitch.send(data);
  delay(5000);
}

I keep hitting this error on compile and I've not got the understanding to solve it really being only fluent in python, js, css and html.... any pointers? My google foo has also let me down. :(

senddemo.cpp:12:21: error: no matching function for call to ‘RCSwitch::send(unsigned int [133])’ mySwitch.send(data); ^ senddemo.cpp:12:21: note: candidates are: In file included from senddemo.cpp:1:0: rc-switch/RCSwitch.h:80:10: note: void RCSwitch::send(long unsigned int, unsigned int) void send(unsigned long code, unsigned int length);

etc.

All ideas appreciated!

@daaaaan
Copy link
Author

daaaaan commented Mar 6, 2019

Double checked. Required the unsigned array branch from Martin.

Have a look here if anyone else hits this here. PR 170

@daaaaan daaaaan closed this as completed Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant