mwasilak / txThings

CoAP library for Twisted
94 stars 43 forks source link

Retrieving IP address from transactions #21

Open cabledst opened 6 years ago

cabledst commented 6 years ago

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...