ble_unsupported.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // +build windows
  2. package ble
  3. import (
  4. "github.com/bettercap/bettercap/session"
  5. )
  6. type BLERecon struct {
  7. session.SessionModule
  8. }
  9. func NewBLERecon(s *session.Session) *BLERecon {
  10. mod := &BLERecon{
  11. SessionModule: session.NewSessionModule("ble.recon", s),
  12. }
  13. mod.AddHandler(session.NewModuleHandler("ble.recon on", "",
  14. "Start Bluetooth Low Energy devices discovery.",
  15. func(args []string) error {
  16. return session.ErrNotSupported
  17. }))
  18. mod.AddHandler(session.NewModuleHandler("ble.recon off", "",
  19. "Stop Bluetooth Low Energy devices discovery.",
  20. func(args []string) error {
  21. return session.ErrNotSupported
  22. }))
  23. return mod
  24. }
  25. func (mod BLERecon) Name() string {
  26. return "ble.recon"
  27. }
  28. func (mod BLERecon) Description() string {
  29. return "Bluetooth Low Energy devices discovery."
  30. }
  31. func (mod BLERecon) Author() string {
  32. return "Simone Margaritelli <evilsocket@gmail.com>"
  33. }
  34. func (mod *BLERecon) Configure() (err error) {
  35. return session.ErrNotSupported
  36. }
  37. func (mod *BLERecon) Start() error {
  38. return session.ErrNotSupported
  39. }
  40. func (mod *BLERecon) Stop() error {
  41. return session.ErrNotSupported
  42. }