Skip to content

Instantly share code, notes, and snippets.

@cagnulein
cagnulein / gist:b04b6d87e8b5d318aa59b510cf8b234e
Created March 24, 2023 08:55
Garmin Random Address Issue
/** NimBLE_Server Demo:
*
This is working to broadcast Power and Cadence under the Cycling Power Service Profile
Data tested against Edge and Phone
*
*/
#include <Arduino.h>
#include <NimBLEDevice.h>
short powerInstantaneous = 0;
@cagnulein
cagnulein / ypyt_sensor_parse.py
Created December 9, 2019 07:42 — forked from zerog2k/ypyt_sensor_parse.py
reads and parses sensor data of JQ-200 / JQ-300 from ypyt cloud for given device token
#!/usr/bin/env python3
""" reads and parses sensor data from ypyt cloud for given device token """
# see https://github.com/xoseperez/espurna/issues/1644 for more context
import json
import os
import sys
import paho.mqtt.client as mqtt
import time as t