Skip to content

Instantly share code, notes, and snippets.

@pcaddict
pcaddict / GT_MultiSensor.groovy
Last active April 11, 2019 23:33
GT_MultiSensor
/*
* Copyright 2018 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@pcaddict
pcaddict / BME280.h
Created January 17, 2019 03:08
How to handle multiple types as function parameter
//template<typename T>struct bme280_data
//{
// T pressure;
// T temperature;
// T humidity;
//};
struct bme280_data_float
{
float pressure;