rename globalcache IR send to GC instead of raw

This commit is contained in:
1technophile committed 2017-05-06 23:07:55 +02:00
1 parent c0879e8d22
commit 411550d8ce
2 files changed
+4 -6

No files matched your search

-2
View File
@@ -22,8 +22,6 @@
- ekim from Home assistant forum - ekim from Home assistant forum
- ronvl from Home assistant forum - ronvl from Home assistant forum
IMPORTANT NOTE: On arduino connect IR emitter pin to D9 , comment #define IR_USE_TIMER2 and uncomment #define IR_USE_TIMER1 on library <library>IRremote/IRremoteInt.h so as to free pin D3 for RF RECEIVER PIN
Permission is hereby granted, free of charge, to any person obtaining a copy of this software Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction, and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
+4 -4
View File
@@ -93,8 +93,9 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
if(count == 0){ if(count == 0){
data = strtoul(datacallback, NULL, 10); // standard sending with unsigned long, we will not be able to pass values > 4294967295 data = strtoul(datacallback, NULL, 10); // standard sending with unsigned long, we will not be able to pass values > 4294967295
} }
else if(strstr(topicOri, "IR_Raw") != NULL){ // sending raw data from https://irdb.globalcache.com #ifdef IR_GC
trc("IR_Raw"); else if(strstr(topicOri, "IR_GC") != NULL){ // sending GC data from https://irdb.globalcache.com
trc("IR_GC");
//buffer allocation from char datacallback //buffer allocation from char datacallback
unsigned int GC[count+1]; unsigned int GC[count+1];
String value = ""; String value = "";
@@ -111,11 +112,10 @@ void MQTTtoIR(char * topicOri, char * datacallback) {
j++; j++;
} }
} }
#ifdef IR_Raw
irsend.sendGC(GC, j); irsend.sendGC(GC, j);
signalSent = true; signalSent = true;
#endif
} }
#endif
//We look into the subject to see if a special Bits number is defined //We look into the subject to see if a special Bits number is defined
String topic = topicOri; String topic = topicOri;