Skip to content

Instantly share code, notes, and snippets.

View acidobinario's full-sized avatar
📦
probably coding, sleeping or in the bathroom

Federico Videla acidobinario

📦
probably coding, sleeping or in the bathroom
View GitHub Profile
@acidobinario
acidobinario / main.cpp
Created April 23, 2024 00:25
Geiger counter FTM wifi esp32-S2/S3
#include "WiFi.h"
#include <Arduino.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
/*
THIS FEATURE IS SUPPORTED ONLY BY ESP32-S2 AND ESP32-C3
*/
// Change the SSID and PASSWORD here if needed
const char *WIFI_FTM_SSID = "WiFi_FTM_Responder"; // SSID of AP that has FTM Enabled

Keybase proof

I hereby claim:

  • I am acidobinario on github.
  • I am fvidela (https://keybase.io/fvidela) on keybase.
  • I have a public key ASD6xmUqNduPzzcXEmtP-7xzdGTcvtmQLiZN1XiyNYI7Cgo

To claim this, I am signing this object:

// creates the string to send to the database and execute it returning an error
func bulkCreateRecordsV2(d []map[string]interface{}) error {
if len(d) <= 0 {
return errors.New("no data to process")
}
var keyStrings []string
valueStrings := make([]string, 0, len(d)) //allocate space
var valueArgs []interface{}
//get keys
for key, _ := range d[0] {