This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void remove_all_bonded_devices(void) | |
{ | |
int dev_num = esp_ble_get_bond_device_num(); | |
esp_ble_bond_dev_t *dev_list = (esp_ble_bond_dev_t *)malloc(sizeof(esp_ble_bond_dev_t) * dev_num); | |
esp_ble_get_bond_device_list(&dev_num, dev_list); | |
for (int i = 0; i < dev_num; i++) { | |
esp_ble_remove_bond_device(dev_list[i].bd_addr); | |
} | |
free(dev_list); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "TFT_eSPI.h" | |
#include "rpcWiFi.h" | |
#include "WiFiClientSecure.h" | |
#include "HTTPClient.h" | |
#include "ArduinoJson.h" | |
DynamicJsonDocument jsonResponse(1024); | |
const char *ssid = "m1Danger"; | |
const char *password = "abivarsh@2016"; | |
const String checkUrl = "https://api.freshping.io/v1/public-check-statuses/524828/"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include <WiFiClient.h> | |
#include <WebServer.h> | |
const uint8_t CLK_CYCLE_DELAY = 100;// us | |
const uint8_t CLK_PIN = 22; | |
const uint8_t DIO_PIN = 19; | |
const uint8_t NUM_DIGITS = 4; | |
const char* ssid = "****"; | |
const char* password = "****"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <WiFi.h> | |
#include "time.h" | |
const char* ntpServer1 = "time.google.com"; | |
const char* time_zone = "IST-5:30"; | |
const uint8_t CLK_CYCLE_DELAY = 100;// us | |
const uint8_t CLK_PIN = 22; | |
const uint8_t DIO_PIN = 19; | |
const uint8_t NUM_DIGITS = 4; |
OlderNewer