Android Question SonOff

Olaan

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.
 
Note that you are talking about an B4J Library and driver here.
This is the B4A Forum.
 
Upvote 0
@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.
B4A Version: 11.50
Parsing code. (0.08s)
Java Version: 14
Building folders structure. (0.03s)
Running custom action. Error
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : อังคาร, พฤษภาคม 10, 2565 8:29:25
Source : C:\Users\salea\DOWNLO~1\SONOFF~1\Shared Files\
Dest : C:\Users\salea\DOWNLO~1\SONOFF~1\B4ASON~1\Files\
Files : *.*

Options : *.* /DCOPY:DA /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
2022/05/10 08:29:25 ERROR 2 (0x00000002) Accessing Source Directory C:\Users\salea\DOWNLO~1\SONOFF~1\Shared Files\
The system cannot find the file specified.
 

Attachments

Upvote 0
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
    error.png
    17.2 KB · Views: 587
Upvote 0
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
Back
Top