pins.D0.digitalWrite(false)
pins.D1.digitalWrite(false)
wifi.attach(
"iPhone efl v2",
"MonPartageDe3g"
)
if (wifi.isAttached()) {
pins.D0.digitalWrite(true)
} else {
pins.D1.digitalWrite(true)
}
forever(function () {
wifi.sendHttpGet("alfio.devoxx.fr", "events", 10000)
loops.pause(10000)
})
erreur: main.ts(3,1): error TS9200: !!proc || !bin.finalPass
erreur: main.ts(7,5): error TS9200: !!proc || !bin.finalPass
pxtapp.js:1 erreur: main.ts(14,5): error TS2552: Cannot find name 'loop'. Did you mean 'loops'?
pxtapp.js:1 erreur: main.ts(14,11): error TS2339: Property 'p' does not exist on type 'typeof loops'.
pxtapp.js:1 erreur: main.ts(14,5): error TS9207: built-in functions cannot be yet used as values; did you forget ()?
pxtapp.js:1 erreur: main.ts(14,5): error TS2554: Expected 1 arguments, but got 0.
5pxtapp.js:1 erreur: main.ts(3,1): error TS9200: !!proc || !bin.finalPass
erreur: main.ts(7,5): error TS9200: !!proc || !bin.finalPass
3pxtapp.js:1 erreur: main.ts(6,1): error TS1128: Declaration or statement expected.
pxtapp.js:1 erreur: main.ts(4,2): error TS1161: Unterminated regular expression literal.
erreur: main.ts(5,1): error TS1005: ',' expected.
2pxtapp.js:1
J'ai utilisé le module wifi avec le programme suivant :
J'ai l'erreur suivante :