Android Question SonOff

Theera

Expert
Licensed User
Longtime User
I'm studying this . I don't understand about SharedFiles.(I' ve an error,how do I do.) I'm not good at English. I need the explain from the expert,please.
 

Theera

Expert
Licensed User
Longtime User
@DonManfred : There is B4A code for me to learn. I'm sorry I forgot to attach file.
@walt61: I get error message as belows. I don't have the shared files.
 

Attachments

  • Project.zip
    5.4 KB · Views: 276
Upvote 0

aeric

Expert
Licensed User
Longtime User
Just comment this line in B4XMainPage:
B4X:
'#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
After I have test B4ASonOff,I have error as the picture. I have use wifiMan app for detection IP Address of equipment.
 

Attachments

  • error.png
    17.2 KB · Views: 250
Upvote 0

walt61

Well-Known Member
Licensed User
Longtime User
I've just tested it here: with a proper IP address, it works. If I enter an IP address that's not assigned at all on my network, I'm getting the exact same error as you, so perhaps you picked the wrong IP?

What result do you get when you use your browser to navigate to this URL (which is exactly what the code does):


If that produces an error too, either the IP is wrong or your S20 may not have been setup properly (I think - I just exactly followed the steps to which I referred in my thread and they appear to work).
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…