

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/'>
	<!ENTITY category 'http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://www.wikidebrouillard.org/wiki/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://www.wikidebrouillard.org/wiki/Special:ExportRDF/Communication_entre_ESP">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-30T21:50:17+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Communication_entre_ESP">
		<rdf:type rdf:resource="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdf:type rdf:resource="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique"/>
		<rdfs:label>Communication entre ESP</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://www.wikidebrouillard.org/wiki/Special:ExportRDF/Communication_entre_ESP"/>
		<swivt:page rdf:resource="https://www.wikidebrouillard.org/wiki/Communication_entre_ESP"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<property:Complete rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Draft</property:Complete>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fait communiquer des ESP32 entre eux.</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Easy</property:Difficulty>
		<property:Disciplines_scientifiques rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Arduino</property:Disciplines_scientifiques>
		<property:Disciplines_scientifiques rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Computing</property:Disciplines_scientifiques>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">10</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minute(s)</property:Duration-2Dtype>
		<property:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pour faire communiquer les ESP entre eux, nous allons utiliser le protocole ESPNow.

Ce protocole est simple, voici son fonctionnement :

&lt;br/&gt;

*On enregistre un ou plusieurs destinataires. Leurs identifiants sont leur [https://fr.wikipedia.org/wiki/Adresse_MAC adresse mac].
*On envoie un message à un destinataire en particulier, ou a tous ceux enregistrés.

&lt;br/&gt;&lt;div class="icon-instructions info-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Ce protocole utilise les ondes Wifi, la porté est donc limité.&lt;/div&gt;
&lt;/div&gt;&lt;div class="icon-instructions info-icon"&gt;
&lt;div class="icon-instructions-icon"&gt;&lt;i class="fa fa-info-circle"&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class="icon-instructions-text"&gt;Les blocs se trouvent dans l'onglet DBLOCADATA --&gt; espnow.&lt;/div&gt;
&lt;/div&gt;&lt;br/&gt;</property:Introduction>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Attribution (CC-BY)</property:Licences>
		<property:Main_Picture rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Communication_entre_ESP_espnow.png</property:Main_Picture>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;nowiki&gt;Pour récupérer l'adresse mac de ton microcontrôleur exécute cette commande dans la console :&lt;br /&gt;&lt;br/&gt;&lt;div class="mw-highlight mw-content-ltr" dir="ltr"&gt;&lt;pre&gt;import network ; import ubinascii ; &lt;br /&gt;ubinascii.hexlify(network.WLAN().config('mac'),':').decode()&lt;/pre&gt;&lt;/div&gt;L'adresse mac sera affichée entre guillemets.&lt;br /&gt;&lt;br /&gt;Tu peux aussi utiliser le bloc '''Récupérer l'adresse MAC'''.&lt;/nowiki&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Premièrement, tu dois enregistrer un ou plusieurs destinataires.

Utilise le bloc '''Enregistrer un destinataire''' et renseigne l'adresse MAC du microcontrôleur à qui tu veux envoyer le message.


Ensuite, tu peux envoyer un message à tous les destinataires enregistrés avec le bloc '''Envoyer un message à tous les destinataires'''.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le bloc '''Quand message reçu''' faire te permet de regarder périodiquement si un message a été reçu et d'exécuter ensuite le code de ton choix.


Ce bloc te fournit 2 variables : '''host''' et '''msg'''.

'''Host''' contient l'adresse mac de l'expéditeur.

'''Msg''' contient le message reçu.

&lt;br/&gt;</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Récupérer l'adresse mac</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Envoyer un message</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Récéption d'un message</property:Step_Title>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-05-17T09:13:23Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460081.884294</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Communication entre ESP</swivt:wikiPageSortKey>
		<property:Comments rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Comments>
		<property:Page_creator rdf:resource="&wiki;Utilisateur-3AAndréa_Bardinet"/>
		<property:I_did_it rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:I_did_it>
		<property:Favorites rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Favorites>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3ATutorials" />
	<owl:Class rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADisciplines_scientifiques" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AMain_Picture" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AComments" />
	<owl:ObjectProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3APage_creator" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AI_did_it" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AFavorites" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>