Skip to content

Updating to jadonk - #1

Merged
MarkAYoder merged 159 commits into
MarkAYoder:masterfrom
jadonk:master
Aug 8, 2019
Merged

MarkAYoder merged 159 commits into
MarkAYoder:masterfrom
jadonk:master

Conversation

@MarkAYoder

Copy link
Copy Markdown
Owner

No description provided.

vaishnavachath and others added 29 commits June 14, 2018 03:58
printing out the socket response from the browser shows the hostname as :
http:// [object] [method] :80
had to modify both the client and server since the method of translation
at the client side will throw the deprecation warning even if node_style
callbacks are used,confirmed working of both style callbacks, needs to add test-case
test cases not added for hw_... dependent cases
…ases

hw_simulator modified to support nodestyle callbacks,added tests for
previously omitted cases
also changed console messages and function names on test-rpc.js from
..._previous to ..._oldstyle
Support nodestyle callbacks
add code comments wherever necessary for changes made as part of
GSoC '18 work
used express-session middleware to handle the session(added as dependency)
used basic-auth to handle authentication(added as dependency)
modify the startclient to send cookie data
modify the startServer to accept credentials
tested both from browser and via node, works well
authentication at express level was removed and was implemented at
the socket.io connection through extraheaders, corresponding modification
was made at server and client
* username & password send as basic authentication headers
* modified server.js to read config file from /etc/default/bonescript
the config file format used was :
{
 "username":"debian",
 "password":"temppwd",
 "port": 8000 ,
 "directory": "/usr/share/bone101"
 }
* need to add more test cases and make other improvements
expression session dependency was removed and simple socket.io middleware
 hash-challenge was used for authentication, modified the client and
server for the changes the passphrase can be supplied to serverstart already
as hash or as plaintext: the configuration files used for testing server.js were:
{
 "hash": true,
 "passphrase":"9f735e0df9a1ddc702bf0a1a7b83033f9f7153a00c29de82cedadc9957289b05",
 "port": 8000 ,
 "directory": "/usr/share/bone101"
 }
and
{
 "hash": false,
 "passphrase":"testpassword",
 "port": 8000 ,
 "directory": "/usr/share/bone101"
 }

also other unnecessary dependencies were removed, need to add test cases
modified rpc tests to increase converage
added analogWrite(), digitalWrite() and pinMode() tests
modified test-ffi to include callback cases
added test-math based on pattern of math functions
added test-digitalRead() and test-analogRead()
in the case of analogWrite() on digital out, the callbacks were invoked
twice everytime, found while writing a test-case
the callback on digitalWrite on AnalogOut was never invoked
due to error in arguments supplied to analogWrite()
add session based authentication for rpc
change function return value type to any
removed getEeproms definition
defined platform object structure
removed unnecesary exports
changes made to node-roboticscape: jadonk/node-roboticscape#5

tested on:
BeagleBone Blue BeagleBoard.org Debian Image 2018-03-05
Linux beaglebone 4.9.105-ti-r113
rc_version : 0.4.4
add rcServo,rcIMU,rcBMP functions
@MarkAYoder
MarkAYoder merged commit 4b87088 into MarkAYoder:master Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants