Re: how to store val.string

2018-05-04 Thread Robert Story
On Fri, 4 May 2018 15:03:48 +0530 Deepak wrote: DS> int ret; char str_pwd[4]=""; DS>. DS> case MODE_SET_COMMIT: DS> str_ pwd=*(requests->requestvb->val.string); You are assigning a pointer to a character array. Just pass val.string to write() directly. Of course, this a

how to store val.string

2018-05-04 Thread Deepak Sachan
hello i want to reset password o my device through snmp client (i.e.MIB browser).Agent will receive the password string and send it to UART. MIB contains- PasswordReset OBJECT-TYPE SYNTAXDisplayString MAX-ACCESSread-write STATUScurrent DESCRIPTION "Device passwo