Avatar for Ossama

Ossama

Member since Oct 2018 • Last active Oct 2018
  • 2 conversations
  • 10 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    I have seen this, but i would like to execute a function within my code.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    How am i able to communicate with the puck say from node red.

    at the moment the puck is advertising events when button is pressed.
    how am i able to sent a response from node red, i.e. MQTT to tell the puck to run a function on my code

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    thanks gordon, you are a god send.
    appreciate your help. i am at the moment very comfortable with he button
    I would like to know 1 last thing, which of the options above is best to save battery

    Bluetooth.write("PRESS\r\n")
    or
    NRF.setAdvertising

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    thanks, that should solve the problem, which brings me to the next question, i rarely am able to program the puck through the espruino hub, i generally resort to the direct connection.... how can this be solved please

    When i go to the espruino hub, i can mot of the time locate the puck when i try to connect i get "connection failed"

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    thanks, found the culprit.
    so what is the best solution, quickest and best for battery please?

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    reinstalled fresh raspbian copy, and seems to be quick now

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    lucky you you get this fast response. I really wish

    when clicking on timestamp the light turns on instantaneous

    i uploaded your code. tried it and was kinda quick. but then after restarting the machine it got slow like before. i am unable to turn off the red led from my flow,

    after doing the mosquito command, i get this,
    it seems to be skipping button counts if a press on button say 5 times i.e. one 1 press a second. see log. but if i press once and wait, it eventually prints it but after a while

    /ble/advertise/d8:19:e7:5b:3a:57/ffff [37]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [39]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [43]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [45]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [45]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [46]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [48]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [49]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [50]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [51]
    /ble/advertise/d8:19:e7:5b:3a:57/ffff [52]

    my machine uptime is as follow, i am not running anything besides nodered

    21:39:17 up 1:02, 2 users, load average: 0.21, 0.15, 0.10

  • in Puck.js, Pixl.js and MDBT42
    Avatar for Ossama

    i am standing 3 meters away from the rpi3 unit. i have disabled wifi as well same thing, still having 7 secs day at some times. please help, i like the puck.js and want to replace my flic buttons at home but flic so far is instantaneous. the flic is using a similar flow but fast..

Actions