Skip to content

Instantly share code, notes, and snippets.

View ketan's full-sized avatar

Ketan Padegaonkar ketan

  • ThoughtWorks, Inc.
  • Pune, India
View GitHub Profile
@ketan
ketan / bosch-glm50-ble.cpp
Created June 5, 2023 12:05
ESP32 program to read length measurements from Bosch GLM 50CG over bluetooth low energy and send them over to your computer by simulating a keyboard.
#include <Arduino.h>
#include <BleKeyboard.h>
#include <NimBLEDevice.h>
NimBLEScan *pBLEScan;
BleKeyboard bleKeyboard("Bosch keyboard");
void setup() {
Serial.begin(115200);
Serial.println("ESP32 BLE");

Keybase proof

I hereby claim:

  • I am ketan on github.
  • I am ketan (https://keybase.io/ketan) on keybase.
  • I have a public key whose fingerprint is FA2D 5FCC E746 AADC 2BDB 5F24 90BB CBEB FC8D EBFC

To claim this, I am signing this object:

#!/bin/bash
# Run in go using -
# <exec command="bash">
# <arg>-c</arg>
# <arg>curl -s https://gist.githubusercontent.com/ketan/2866a236596636311d64/raw/ansi-color-test.sh | bash</arg>
# </exec>
echo "<script>console.log('42')</script>"