Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function can send String, and standard command can be disabled #140

Closed
wants to merge 1 commit into from
Closed

Function can send String, and standard command can be disabled #140

wants to merge 1 commit into from

Conversation

lucalas
Copy link

@lucalas lucalas commented Feb 27, 2017

Function can send String, and standard command can be disabled (analog, digital, mode).
I changed the return value of a function to return a string to client so we can send json for example instead of an integer.

In addition I thought that if i expose my api in internet, normal commands like analog, digital and mode, would be really insecure, so i added a define that help us to attach and detach them.

…...) can be disabled

I changed the return value of a function to return a string to client so we can send json for example.
I thought that if i expose my api in internet, normal commands like analog, digital and mode, would be really insecure, so i added a define that help us to attach and detach them.
@lucalas lucalas closed this Jan 23, 2018
@gorhgorh
Copy link

gorhgorh commented Aug 6, 2018

why is this pr closed? Return a json object from function would be rad ? @lucalas are you using this atm?

@lucalas
Copy link
Author

lucalas commented Aug 6, 2018

@gorhgorh the build didn't work at all, just for the case that i'm able to test.

At the moment I'm not able to build and test all cases to verify travis tests and i don't use Arduino board anymore, however I can try to recreate the pool request if you think could be a good feature.

@lucalas
Copy link
Author

lucalas commented Aug 6, 2018

@gorhgorh I think this PR #233 do the same thing but in a better way!

@gorhgorh
Copy link

gorhgorh commented Aug 9, 2018

thanks for your comments, I'll have a look a this PR

@Ellerbach
Copy link

@gorhgorh let me know if you have any question on the function returning string. I'm the one who did the PR. Happy to help you if needed.

@gorhgorh
Copy link

gorhgorh commented Aug 9, 2018

thanks @Ellerbach, too bad this is pr is not merged, i see so many case where getting data as return of a function avoid having to expose, and make a request to a variable, as we had to do in the project we are using aRest with

@marcoschwartz
Copy link
Owner

Indeed, I am not sure about why this PR request was closed. If anyone want to submit a new one you are welcome to do so :)

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.

4 participants