This is a continuation of this thread: https://www.b4x.com/android/forum/threads/add-sendpronto-to-ir-library.115222/
In IRremote.h there is this prototype
I added this code to rIRremote.h and rIRremote.cpp
In h file added prototype
In c file I added
Created the proper xml file with new method
Refreshed my libraries but still when I type
I am sure I am doing something simple wrong.
Attaching ALL the files I modified from Erel's original post
In IRremote.h there is this prototype
B4X:
# if SEND_PRONTO
void sendPronto (char* code, bool repeat, bool fallback) ;
# endif
I added this code to rIRremote.h and rIRremote.cpp
In h file added prototype
B4X:
void SendPronto(string data, bool repeat, bool fallback);
In c file I added
B4X:
void IrSend::SendPronto(string data, bool repeat, bool fallback) {
ir.sendPronto(data, repeat, fallback);
}
Created the proper xml file with new method
B4X:
<method><name DesignerName="SendPronto">SendPronto</name><returntype>B4R::void</returntype><parameter><name>data</name><type>B4R::string</type></parameter><parameter><name>repeat</name><type>bool</type></parameter><parameter><name>fallback</name><type>bool</type></parameter></method>
Refreshed my libraries but still when I type
B4X:
Public IRControl As IrSend
IRControl.Enable(5, 38)
IRControl. <------ All the different available type of calls show up in the IDE list but NOT the SendPronto I added.
I am sure I am doing something simple wrong.
Attaching ALL the files I modified from Erel's original post