with respect to below string, i need to split it and store the values accordingly as below,
P2P-DEVICE-FOUND fa:7b:7a:42:02:13 p2p_dev_addr=fa:7b:7a:42:02:13
pri_dev_type=1-0050F204-1 name='p2p-TEST1' config_methods=0x188 dev_capab=0x27 group_capab=0x0 wfd_dev_info=000006015d022a0032
actually this is the string :
P2P-DEVICE-FOUND fa:7b:7a:42:02:13 p2p_dev_addr=fa:7b:7a:42:02:13
pri_dev_type=1-0050F204-1 name='p2p-TEST1' config_methods=0x188 dev_capab=0x27 group_capab=0x0 wfd_dev_info=000006015d022a0032
and i have below variables stored in a class called wifip2pdevice,
dev_addr
dev_type
dev_name
config_method
dev_capab
group_capab
dev_info
I have to split the above string and store the values alone in the above mentioned variables