Coder Social home page Coder Social logo

wsnserver's Introduction

🙋

wsnserver's People

Contributors

barde avatar kamwo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kamwo rubiruchi

wsnserver's Issues

Fehler bei WSN-Backend

debar@wsnserver:/usr/local/ubi/wsnserver$ python SerialReader.py -v -c "HELP"
Initial Command: HELP
Port: /dev/ttyUSB0
rx:148ANID
rx:ERROR:
tx:HELPrx:received Message: HELP+WPANID
rx:Byte values: 72 69 76 80 43 87 80 65 78 73 68 13
rx:148
^C

Koss fragen, keine Ahnung warum es nicht klappt.
Todo: Byte-Values auf ASCII umsetzen

SQL-Input crasht

debar@wsnserver:/usr/local/ubi/wsnserver$ python SerialReader.py -b 115200 -v
Port: /dev/ttyUSB0
^C
debar@wsnserver:/usr/local/ubi/wsnserver$ python SerialReader.py -b 38400 -v
Port: /dev/ttyUSB0
rx:ERROR:
rx:received Message: �x��xxxxx�x��x
Traceback (most recent call last):
File "SerialReader.py", line 314, in
s.servant()
File "SerialReader.py", line 173, in servant
self.controller.saveDataAction(self.controllerId, outdata)
File "/usr/local/ubi/wsnserver/Controller.py", line 27, in saveDataAction
self.dataRepository.saveData(id, value)
File "/usr/local/ubi/wsnserver/DataRepository.py", line 98, in saveData
cursor.execute(sql, values)
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

Optional: Create a DataBaseDriver class

  • Goal: A DataBaseDriver class has the goal to provide database-connections to a database.
  • Should handle for example connection to sqlite3 or mysql databases --> perhaps a config file is needed for that

Init.d für Debianoide oder Upstart

Vielleicht auch für Fedora? Oder gleich ein "./configure && make install"? Oder vielleicht Python-Modul distribution? Kann ewig weiter gehen.

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.