{"action":"closed","issue":{"url":"https://api.github.com/repos/fgimian/easysnmp/issues/54","repository_url":"https://api.github.com/repos/fgimian/easysnmp","labels_url":"https://api.github.com/repos/fgimian/easysnmp/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/fgimian/easysnmp/issues/54/comments","events_url":"https://api.github.com/repos/fgimian/easysnmp/issues/54/events","html_url":"https://github.com/fgimian/easysnmp/issues/54","id":188728607,"number":54,"title":"Convert snmp_get return value to string","user":{"login":"StephanSchrenk","id":23398699,"avatar_url":"https://avatars.githubusercontent.com/u/23398699?v=3","gravatar_id":"","url":"https://api.github.com/users/StephanSchrenk","html_url":"https://github.com/StephanSchrenk","followers_url":"https://api.github.com/users/StephanSchrenk/followers","following_url":"https://api.github.com/users/StephanSchrenk/following{/other_user}","gists_url":"https://api.github.com/users/StephanSchrenk/gists{/gist_id}","starred_url":"https://api.github.com/users/StephanSchrenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephanSchrenk/subscriptions","organizations_url":"https://api.github.com/users/StephanSchrenk/orgs","repos_url":"https://api.github.com/users/StephanSchrenk/repos","events_url":"https://api.github.com/users/StephanSchrenk/events{/privacy}","received_events_url":"https://api.github.com/users/StephanSchrenk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-11T10:20:51Z","updated_at":"2016-12-30T15:54:17Z","closed_at":"2016-12-30T15:54:17Z","body":"Hello,\r\nI am currently using \"snmp_get\" from easysnmp in Python!\r\n\r\nFirst of all, the SNMP request works as it should, but I found out that the returned value is type \"SNMPVariable\" as you'll see here:\r\n![error_snmpvariable](https://cloud.githubusercontent.com/assets/23398699/20211669/d40980ee-a7ff-11e6-8b79-60080870602a.png)\r\n\r\nI used len() to find out whether it's a string so don't wonder..\r\n\r\nNow my question is if there is any function to convert this returned type into a string so I can use the string manipulation of python! The aim is to get the temperature value only. (marked in red)\r\n![snmp_return](https://cloud.githubusercontent.com/assets/23398699/20211859/bd445c02-a800-11e6-80a6-c240d7f97d45.PNG)\r\n\r\n\r\nHere's the command I use to get the snmp information:\r\n`snmp_get('1.3.6.1.4.1.21796.4.1.3.1.4.1', hostname='10.48.1.201', community='public', version=1)`\r\n\r\nThank you for your help!\r\n\r\nBest regards,\r\nStephan Schrenk"}}
{"actor":{"display_login":"fgimian"}}