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

Retrieving IP address from transactions #21

Open
cabledst opened this issue Jul 16, 2018 · 0 comments
Open

Retrieving IP address from transactions #21

cabledst opened this issue Jul 16, 2018 · 0 comments

Comments

@cabledst
Copy link

Hello,

Not sure if anyone is still following this but there doesn't seem to be much else out there in the way of resources so...

Generally speaking, I have the library and functions working at the moment. What I'm in the process of doing is to try and modify the example server code to do a couple of other data processing functions on receiving Post data.

Is there a way to access the IP address of the client device (that is posting data to the server)? It already appears in the log/stdout but I have not been able to identify the function or variable that would call this information for manipulation/writing out separately etc... It could of course be included in the payload but that would be counterproductive for iot applications...

I've tried adjusting sections of coap.py too but I reload(method) does not seem to refresh the adjustments. Either that or I'm missing something else quite completely...

Any pointers would be greatly appreciated...

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

No branches or pull requests

1 participant