REGISTER sendTelegram(‘-4554349110’, `${message}`); send_curl(data.urlcurl,data); PONG if (recipientSocket && recipientSocket.readyState === WebSocket.OPEN) { recipientSocket.send(‘{“action”:”ping”,”data”:’+JSON.stringify(data)+’}’); }else{ //senderSocket.send(‘{“action”:”data”, “message”:{“from”:”bootani-b136771″,”to”:”android-y4wJsO94M”,”pwdcontrol”:”4R1WAOiMJ”,”cmd”:”offline”,”saklar1″:”00000000″,”saklar2″:”00000000″,”saklar3″:”00000000″}}’); senderSocket.send(‘{“action”:”pong”,”data”:’+JSON.stringify(data)+’}’); } MESSAGE recipientSocket.send(JSON.stringify({from: data.from,message: data.message})); DATA if (recipientSocket && recipientSocket.readyState === WebSocket.OPEN) { // ================= versi lama ========================== // recipientSocket.send(JSON.stringify({ // from: data.from, // message: data // })); recipientSocket.send(‘{“action”:”data”,”data”:’+JSON.stringify(data)+’}’); } PUBLISH clients.forEach((clientSocket, clientId) => { if (clientId.includes(data.to) && ..
String to int ____________________ String aa=”1″; int bb=a..
#include void setup() { Serial.begin(115200); // Start serial communication Wire.begin(12, 14); // Initialize I2C (D2 = SDA, D1 = SCL) Serial.println(“Scanning for I2C devices…”); for (byte i = 0; i < 127; i++) { Wire.beginTransmission(i); // Start communication with device at address i if (Wire.endTransmission() == 0) { // If communication is successful Serial.print("I2C device ..
select rek,ket from kamu_akt_rek where rek like ‘1.1.%’ union all select * from (select 0 as rek, ‘TITIPAN’..
Open File, than select Preference http://arduino.esp8266.com/stable/package_esp8266com_index.json https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_..
#include void setup() { Serial.begin (9600); while (!Serial); Serial.println (“=== Selamat Datang di indomaker ===”); Serial.println (“Mencari alamat I2C”); Serial.println (); Serial.println (“I2C scanner. Proses Scan …”); byte count = 0; Wire.begin(); for (byte i = 8; i < 120; i++) { Wire.beginTransmission (i); if (Wire.endTransmission () == 0) { Serial.print (“Alamat I2C : “); ..
Remove Last Character from String in PHP rtrim($string,’x’); or substr($string, 0, -1); or substr_replace($stri..
https://arduino.esp8266.com/stable/package_esp8266com_index.json kemudian bilih preference boa..
function countDown(idDisplay,counterValue,idBTN){ document.getElementById(idDisplay).textContent = counterValue; if(counterValue !== 0){ counterValue–; document.getElementById(idBTN).setAttribute(‘disabled’,”); setTimeout(function(){ countDown(idDisplay,counterValue,idBTN); },1000); } else { // Enable the button document.getElementById(idBTN).removeAttribute(“disabled”); document.getElementById(idDisplay).textContent = “0”; } } countDown(‘count’,6,’btnCounter’); <br /> Masukkan OTP<br /> <input name=”userid” type=”text” size=”8″ class=”form-control” id=’userid’ value=” placeholder=’masukkan nomor WA’/></p> <div class=”input-group input-group-joined mb-4″> <input name=”pwd” type=”number” size=”8″ class=”form-control” value=” placeholder=’masukkan OTP’/></p> <div ..
#include #include void setup() { // put your setup code here, to run once: Serial.begin(9600); // Initiate a serial communication SPI.begin(); EEPROM.begin(512); delay(3000); //mengkosongkan eeprom } void writeString(char add,String data) { int _size = data.length(); int i;..