Forum / Guestbook




hans-jacob Sat 12 Jan 2019 at 17:55:46
Re: ACTION Flamingo SF-501 433Mhz Remote Control Wall Socket

-
i_at_Domoticz:~/test/raspKaku $ sudo nano newkaku.cpp

  GNU nano 2.7.4                                                                             File: newkaku.cpp                                                                                       

            address = atol(argv[1]);
            device = atol(argv[2]);
            string statestr = argv[3];
           
            if( statestr.compare("on") == 0 ) {
                    state = true;
            } else {
                    state = false;
            }
    }
   
    // load wiringPi
        if(wiringPiSetup() == -1)
        {
                printf("WiringPi setup failed. Maybe you haven't installed it yet?");
                exit(1);
        }

    // setup pin and make it low
        pinMode(pin_out, OUTPUT);
        digitalWrite(pin_out, LOW);
//      KaKuSwitch kaKuSwitch(pin_out);
//      kaKuSwitch.sendSignal(address, device, state);
std::cout << "address= " << address << " device= " << device << std::endl;
NewRemoteTransmitter transmitter(address, 0, 260, 3);
transmitter.setAddress(address);
transmitter.sendUnit(device, state);
}


End of Message, Thanks For Viewing! ☺
Tip: if your watching on your phone or tablet ⁝ add / save to homescreen and you get a nice icon its Free!
Tip: on your computer or laptop do not forget to bookmark this page its Free!
BookMark ShortCut Keys press ctrl+d on your keyboard




-

-

Reply to this Message


Name
Subject
Message

, <code> <b> <i> <u> .






POLL / VOTE
Did you like this Page id=229 ?

NO:         YES:




   


Design a Bit like ForumOne 4.0 WayBack 1999 ©
Always Read the Small print?!



http://forum.luberth.com - - http://www.luberth.com/forum/

NO COOKIES !?

thanks for your support
Thank You!




Co2 FootPrint WebServer



                         My Cheap Chinese Friend Ali     
Copyright Luberth Dijkman 2018 ... 2019