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
package main | |
import( | |
"encoding/binary" | |
//"encoding/binary" | |
"fmt" | |
"math" | |
) | |
func main(){ |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/gorilla/mux" | |
"golang.org/x/oauth2" | |
"io/ioutil" | |
"log" |
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
/*Initializer code block */ | |
{ | |
package main | |
import ( | |
"strconv" | |
"strings" | |
) | |
type SelectQuery struct{ | |
SelectFields []string |
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
{ | |
package main | |
import ( | |
"encoding/json" | |
"reflect" | |
) | |
type Query struct{ | |
Collection string | |
Condition []string |
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
{ | |
package main | |
import ( | |
"encoding/json" | |
"reflect" | |
"learn-peg/parser/utils/postfix" | |
) | |
type Query struct{ | |
Collection string |
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
package main | |
import ( | |
"bufio" | |
"gocv.io/x/gocv" | |
"image" | |
"image/color" | |
"log" | |
"os" | |
"fmt" |
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
package service | |
import "github.com/bettercap/gatt" | |
var ( | |
attrGAPUUID = gatt.UUID16(0x1800) | |
attrDeviceNameUUID = gatt.UUID16(0x2A00) | |
attrAppearanceUUID = gatt.UUID16(0x2A01) | |
attrPeripheralPrivacyUUID = gatt.UUID16(0x2A02) |
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
package service | |
import ( | |
"log" | |
"github.com/bettercap/gatt" | |
) | |
var ( | |
attrGATTUUID = gatt.UUID16(0x1801) | |
attrServiceChangedUUID = gatt.UUID16(0x2A05) |
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
package service | |
import "github.com/bettercap/gatt" | |
func NewBatteryService() *gatt.Service { | |
lv := byte(100) | |
s := gatt.NewService(gatt.UUID16(0x180F)) | |
c := s.AddCharacteristic(gatt.UUID16(0x2A19)) | |
c.HandleReadFunc( | |
func(rsp gatt.ResponseWriter, req *gatt.ReadRequest) { |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"github.com/bettercap/gatt" | |
"github.com/bettercap/gatt/examples/option" | |
"github.com/bettercap/gatt/examples/service" | |
) |
OlderNewer