B4R Question Add SendPronto to IR Library

Robert Valentino

Well-Known Member
Licensed User
Longtime User
In this library https://www.b4x.com/android/forum/threads/ir-send-and-receive.69454/#content one of the sources is for sending Pronto codes but is not implemented in the library.
B4X:
bool sendPronto (char* s,  bool repeat,  bool fallback)

I was trying to implement it but not much luck. Couple reason - 1 is not sure how to setup the xml on how to pass a character string.
B4X:
        <method>
            <name DesignerName="SendPronto">SendPronto</name>
            <returntype>B4R::void</returntype>
            <parameter>
                <name>data</name>                                  
                <type>char</type>                                         <----------------------- this needs to be a character array or string
            </parameter>
            <parameter>
                <name>repeat</name>
                <type>bool</type>
            </parameter>
            <parameter>
                <name>fallback</name>
                <type>bool</type>
            </parameter>
        </method>

Is it possible to add this routine to the library?

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Thanks that was Easy.

NOTE: I found that I needed to add the .jar to then end of the file name (for B4Rh2xml) otherwise I kept getting. Unable to access jarfile B4Rh2xml

java -jar B4Rh2xml.jar <path to h file> <output file>

Thanks again
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…