Message envoyé
le
12-10-2022
par
goupilk
(Nigeria)
Salut la team,
est-ce que quelqu'un aurait une doc ou un exemple pour utiliser les IOT via TUYA sous WDM.
Merci d'avance.
Message envoyé
le
28-10-2022
par
goupilk
(Nigeria)
Up
Up
UP
Message envoyé
le
25-03-2023
par
goupilk
(Nigeria)
UP
UP
UP
Message envoyé
le
25-03-2023
par
Voroltinquo
(France)
Bonjour,
Regarde sur le site de TUYA, il y a un lien qui va bien
Message envoyé
le
01-04-2023
par
goupilk
(Nigeria)
Bonjour Voroltinque,
Tu m'aurais répondu de regarder sur internet, ça n'aurait pas changé grand chose...
Quand on n'a rien à dire, il vaut mieux se taire.
Message envoyé
le
01-04-2023
par
Voroltinquo
(France)
Quand on ne veut pas lire la doc il vaut mieux changer de métier. Il y a des exemples pour implémenter chaque fonction.
e.g.
[Code]
- (void)startConfigWiFi:(NSString *)ssid password:(NSString *)password token:(NSString *)token {
// Implements the delegate method of `TuyaSmartActivator`.
[TuyaSmartActivator sharedInstance].delegate = self;
// Start AP pairing, in which `mode` is set to `TYActivatorModeAP`.
[[TuyaSmartActivator sharedInstance] startConfigWiFi:TYActivatorModeAP ssid:ssid password:password token:token timeout:100];
}
if (!error && deviceModel) {
// The device is paired.
}
if (error) {
// Failed to pair the device.
}
}
// Added to v4.0.0: The callback for the intermediate process is triggered in the task of pairing a certain security device.
- (void)activator:(TuyaSmartActivator *)activator didPassWIFIToSecurityLevelDeviceWithUUID:(NSString *)uuid {
// Then, you can guide users to connect to the specified Wi-Fi network.
// This way, the mobile is connected to the Wi-Fi network with the same service set identifier (SSID) as specified by `- startConfigWiFi:password:token:`.
// You can get the same SSID and call `- continueConfigSecurityLevelDevice` to continue with the pairing task.
// UIAlertController *vc = [UIAlertController alertControllerWithTitle:@"SecurityLevelDevice" message:@"continue pair? (Please check you phone connected the same Wi-Fi as you Inputed)" preferredStyle:UIAlertControllerStyleAlert];
// [vc addAction:[UIAlertAction actionWithTitle:@"cancel" style:UIAlertActionStyleCancel handler:nil]];
// [vc addAction:[UIAlertAction actionWithTitle:@"continue" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {
//
// NSString *wifi = [self getCurrentWiFi];
// if ([wifi isEqualToString:self.inputSSID]) {
// [[TuyaSmartActivator sharedInstance] continueConfigSecurityLevelDevice];
// }
// }]];
// [self presentViewController:vc animated:YES completion:nil];
}
[/code]
Cela semble assez fouillis au départ certes, mais tout y est
Message envoyé
le
01-04-2023
par
goupilk
(Nigeria)
Je vois que tu es vexé et que tu sais faire un copier/coller ,mais pas grand chose de plus... Je demandais une doc ou exemple sous WDM.
Tu peux laisser tomber, j'y suis arrivé, donc pas besoin de changer de métier LOL.