The way you were splitting the %WIFII was not correct. Below is a working example.The data in the WIFII result is done in 6 lines each ending in a carraige return. So the best splitter for this is to use the carriage return. Tasker doesn't let you directly enter a return (carriage return) character directly, so you need to set a variable to a return character and reference that variable as the splitter in the Variable Split command in A3. The results of that split are flashed in A4, so you can see what it did. As you can see, the Mac address is in %ssidd5. To get the Mac address value only we can use a Variable Section action which allows us to define the beginning and ending of the characters we want to extract from the string. In this case we want to ignore the "Mac: ". Notice that I included the space, that's important. So "Mac: " is 5 characters, then we want to start our variable section with the 6th character. Since we want the rest of the string we can make the ending character value larger than the length of the string and set the Adapt to Fit option On as shown in A5. The variable section result is stored in %SSID. Finally, the SSID value is flashed in A6.The flashes exist only to show what is happening. Hope this helps :>)SSID (336)A1: Variable Set [ Name:%return To:Do Maths:Off Append:Off ]A2: Variable Set [ Name:%ssidd To:%WIFII Do Maths:Off Append:Off ]A3: Variable Split [ Name:%ssidd Splitter:%return Delete Base:Off ]A4: Flash [ Text:%ssidd1%ssidd2%ssidd3%ssidd4%ssidd5%ssidd6 Long:On ]A5: Variable Section [ Name:%ssidd5 From:6 Length:24 Adapt To Fit:On Store Result In:%SSID ]A6: Flash [ Text:%SSID Long:Off ]
The way you were splitting the %WIFII was not correct. Below is a working example.
The data in the WIFII result is done in 6 lines each ending in a carraige return. So the best splitter for this is to use the carriage return. Tasker doesn't let you directly enter a return (carriage return) character directly, so you need to set a variable to a return character and reference that variable as the splitter in the Variable Split command in A3. The results of that split are flashed in A4, so you can see what it did. As you can see, the Mac address is in %ssidd5. The SSID value is contained in %ssidd3 so we can use Variable Set %SSID to %ssidd3 in A5. If you want to get the Mac address value only we can use a Variable Section action which allows us to define the beginning and ending of the characters we want to extract from the string. In this case we want to ignore the "Mac: ". Notice that I included the space, that's important. So "Mac: " is 5 characters, then we want to start our variable section with the 6th character. Since we want the rest of the string we can make the ending character value larger than the length of the string and set the Adapt to Fit option On as shown in A6. The variable section result is stored in %MAC. Finally, the SSID and MAC values is flashed in A7.
The flashes exist only to show what is happening. Hope this helps :>)SSID (336)A1: Variable Set [ Name:%return To:Do Maths:Off Append:Off ]A2: Variable Set [ Name:%ssidd To:%WIFII Do Maths:Off Append:Off ]A3: Variable Split [ Name:%ssidd Splitter:%return Delete Base:Off ]A4: Flash [ Text:%ssidd1%ssidd2%ssidd3%ssidd4%ssidd5%ssidd6 Long:On ]
A5:Variable Set [%SSID To: %ssidd3 Do Maths:Off Append:Off ]
A6: Variable Section [ Name:%ssidd5 From:6 Length:24 Adapt To Fit:On Store Result In:%MAC ]A7: Flash [ Text:%SSID
%MAC Long:Off ]