GithubHelp home page GithubHelp logo

error reading datafile about bleah HOT 28 CLOSED

evilsocket avatar evilsocket commented on August 25, 2024
error reading datafile

from bleah.

Comments (28)

evilsocket avatar evilsocket commented on August 25, 2024

is file.txt in the folder where you're running the tool from?

from bleah.

NadSo avatar NadSo commented on August 25, 2024

file.txt is saved under: Desktop->bleah-master->bleah

from bleah.

evilsocket avatar evilsocket commented on August 25, 2024

you're running the tool from your home folder, give it the correct path of the file, how do you even expect it to work if you don't do that?! -.-

from bleah.

NadSo avatar NadSo commented on August 25, 2024

but that is what I did

from bleah.

evilsocket avatar evilsocket commented on August 25, 2024

no, your CWD is your home, so -r file.txt means -r /home/kamdem/file.txt which obviously does not exist .. learn to use a terminal please.

from bleah.

NadSo avatar NadSo commented on August 25, 2024

Is it supposed to do that?

datafile

from bleah.

NadSo avatar NadSo commented on August 25, 2024

I thought it would Read data to be written from the file.txt. Instead of it It just scan for BLE devices

from bleah.

evilsocket avatar evilsocket commented on August 25, 2024

There's a help menu and several examples in the README, you clearly didn't bother reading and understanding that documentation.

from bleah.

NadSo avatar NadSo commented on August 25, 2024

no it is not true. In the README the description says "Read data to be written from this file" . There is not any example about the datafile.

from bleah.

buffermet avatar buffermet commented on August 25, 2024

it can be any data

from bleah.

NadSo avatar NadSo commented on August 25, 2024

thanks yungtravla for your reply. But I thought the data in my file.txt should be read

from bleah.

buffermet avatar buffermet commented on August 25, 2024

? The grammar in the --help and README.md are correct, maybe you are misinterpreting?

Bleah reads the data - that will be written - from your text file

from bleah.

buffermet avatar buffermet commented on August 25, 2024

so it reads whatever contents from your file.txt and writes it to the UUID that you specify from a ble device

from bleah.

NadSo avatar NadSo commented on August 25, 2024

so for example if my file.txt contents the data: 1,2,3,4. the tool will write this data to the UUID ?

from bleah.

buffermet avatar buffermet commented on August 25, 2024

Have you tried --data? Then you will understand --datafile/-r

from bleah.

NadSo avatar NadSo commented on August 25, 2024

yes I did. --data is used to write some data to the characteristic

from bleah.

buffermet avatar buffermet commented on August 25, 2024

and yes.

from bleah.

buffermet avatar buffermet commented on August 25, 2024

bingo, and --datafile does the same, but reads the data from a file

from bleah.

NadSo avatar NadSo commented on August 25, 2024

In the same way --datafile/r is used the write data to characteristic from the file.txt, right?

from bleah.

buffermet avatar buffermet commented on August 25, 2024

that is exactly what I said and what is written in the docs.

from bleah.

buffermet avatar buffermet commented on August 25, 2024

wait. what...? Did you really just say it is used to write data to characteristics from the file.txt? Grammar plz

from bleah.

buffermet avatar buffermet commented on August 25, 2024

please explain to me what characteristics from a txt file are

from bleah.

NadSo avatar NadSo commented on August 25, 2024

Thank you so much. So by using --datafile I have to specify which characteristic I want to write data to. That is what was missing

from bleah.

NadSo avatar NadSo commented on August 25, 2024

I meant write data from the file to characteristics

from bleah.

buffermet avatar buffermet commented on August 25, 2024

try bleah -t10 -fe

from bleah.

buffermet avatar buffermet commented on August 25, 2024

wait 20 seconds, and bleah will enumerate all the characteristics

from bleah.

buffermet avatar buffermet commented on August 25, 2024

000fe00-000f-00f0-00f0-0000f00f0f0f00f these address types are UUIDs, you can write data to a UUID if it has the WRITE property listed next to it

from bleah.

evilsocket avatar evilsocket commented on August 25, 2024

Fixed by properly handling the exception:

lulz

from bleah.

Related Issues (20)

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.