Coder Social home page Coder Social logo

manekinekko / angular-web-bluetooth-starter Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 9.0 283 KB

A Starter for the Angular Web Bluetooth module

Home Page: https://github.com/manekinekko/angular-web-bluetooth

TypeScript 95.27% HTML 3.78% CSS 0.95%
bluetooth bluetooth-low-energy web-bluetooth angular

angular-web-bluetooth-starter's Introduction

angular-web-bluetooth-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-web-bluetooth-starter's Issues

acceptAllDevices not working

using the library to scan for all devices throws a Typescript error. Filter work, though.

let scanfilter1 = {
options: {
acceptAllDevices: true
}
};

  this.webble
      // 1: discover devices
      .discover$( scanfilter1 );

ERROR:
Typescript Error
Argument of type '{ options: { acceptAllDevices: boolean; }; }' is not assignable to parameter of type 'RequestDeviceOptions'. Property 'filters' is missing in type '{ options: { acceptAllDevices: boolean; }; }'.

ON;
Ionic Framework: 3.0.1
Ionic App Scripts: 1.3.0
Angular Core: 4.0.0
Angular Compiler CLI: 4.0.0
Node: 7.8.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Mobile Safari/537.36

Unexpected value '[object Object]' imported by the module 'AppModule' error

Hi, I am getting this error

Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'
    Zone.runTask @ zone.js:170
    ZoneTask.invoke @ zone.js:420

after I add

WebBluetoothModule.forRoot({
  enableTracing: true
}),

to the imports section of AppModule.

Do you have any suggestion on how to avoid that?
Thanks a lot

Fail to build... ng build --prod

I am trying to build my Angular project using the CLI with the production flag, but I'm getting the following error.

ERROR in ..\@manekinekko\angular-web-bluetooth\dist\lib\platform\browser.ts(3,2): Error during template compile of 'BrowserWebBluetooth'
Function calls are not supported in decorators but 'ɵmakeDecorator' was called in 'Injectable'
'Injectable' calls 'ɵmakeDecorator'.

Some info...
Angular Core: 5.2.0
Angular CLI: 1.6.8
Node: 8.9.1
OS: Windows 10 x64

Any assistance would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.